Comments (7)
Thanks for the praise, it keeps me going!
I haven't had much time this week, but hopefully I'll get a chance to dig into this a bit more next week. Thanks for the detailed bug report, and especially for the workaround. That should help narrow down what's going on. I'll keep you updated.
from scripty.
No updates for this issue?
from scripty.
@iDarush Not yet - been swamped the last couple months. Hoping to get back to Scripty over the holidays when things settle for a bit.
from scripty.
I'm getting the same "equivalent project" exception @0x084E reported, when using the VS2015 extension + "Custom Tool" approach to consuming Scripty. Once the project has loaded for the first time, I can make exactly one change to a .csx
file. Every other time I try to save the .csx
file, I get the error.
@0x084E got me on the right path for working around the issue; however, I'm new enough that I didn't understand where the value of project
came from, when calling the UnloadProject()
method. Here's the .csx
code that allows me to make multiple changes without having to restart Visual Studio:
using Microsoft.Build.Evaluation;
ProjectCollection.GlobalProjectCollection.UnloadProject(Project.Build);
from scripty.
I was fighting some blockers on getting a VS 2017 version out. Now that I've gotten past those I can start working on the issue backlog. First thing to check is if the new 0.7.x version helps with this issue. Can any of you try this scenario out with the new version and report back? Thanks!
from scripty.
Hello @daveaglick,
Thanks for making this great tool. I just tried it out in VS 2017 and I can confirm that this bug still exists in 0.7.0.0. Thankfully calling UnloadProject as mentioned above still works to get around the problem.
Thanks!
from scripty.
Might this be this problem: https://github.com/dotnet/roslyn/wiki/FAQ#how-can-i-use-roslyn-in-an-msbuild-task-and-avoid-metadata-fetching-and-re-entrancy-conflicts
from scripty.
Related Issues (20)
- After installing scripty tool VS2017 is broken HOT 1
- Can't set the custom tool HOT 2
- Auto run custom tool when *.cs document saving HOT 3
- Making Scripty.MsBuild run only within a single build configuration HOT 5
- Cake.Scripty references an older version of Cake.Core
- Scripty doesn't work in SDK-style projects HOT 6
- Potential problems with outputting to source folder HOT 1
- Scripty.MsBuild settings encoding problem
- Scripty still runs even if file is excluded from project HOT 3
- Recommended changes resulting from automated audit HOT 1
- Extension fails to work in 15.8 Preview 3 HOT 19
- How to use System.Data namespace in .csx File HOT 1
- Scripty Extension Page Not Found HOT 1
- Trouble with referenced third-party libraries HOT 2
- Scripty Visual Studio extension URL is not working HOT 2
- Dead Project ? HOT 1
- Visual studio extesion no longer available + does not work in .net core 2.1, 2.2
- Is this project dead? What do we use to generate code with .NET Core 3.1? HOT 1
- Works on Windows, fails on Linux.
- create a source generator to replace scripty
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scripty.