Comments (7)
This is very strange. SlnGen is running dotnet --info
and looking for the line that says:
Base Path: C:\Program Files\dotnet\sdk\3.1.302\
Does this happen consistently?
from slngen.
Yes, It happens every time. I'm unable to make SlnGen work on my machine.
from slngen.
Very strange. I added a unit test with your exact output and it seems to work.
Can you try building SlnGen locally and debugging it on your machine? The TryGetDotNetCoreBasePath method is what parses the output of dotnet --info
to get the value of BasePath
.
You can also downgrade to unblock yourself
dotnet tool uninstall --global microsoft.visualstudio.slngen.tool
dotnet tool install --global --version 3.4.11 microsoft.visualstudio.slngen.tool
You can try older versions until it works again, that would narrow down which commit broke you.
from slngen.
Same error on me and old version also doesn't work.
from slngen.
I'm able to mitigate by uninstalling all 2.xx version .net core SDKs. Only keep the latest one.
from slngen.
+1
I had to uninstall all 2.0.xxx and 2.1.xxx .Net Core versions to get unblocked.
from slngen.
This is now fixed in the latest version
from slngen.
Related Issues (20)
- SlnGen fails under VsDevCmd environment. HOT 3
- ARM/ARM64 not supported as values to --platform flag HOT 2
- --collapsefolders true doesn't collapse nested single items
- SlnGenSolutionItem Include doesn't support wildcard expansion HOT 1
- Solution generation fails when multiple projects include the same shared items project HOT 3
- Discussion: Custom Solution/Project Config Mapping HOT 6
- Example for CustomBeforeSlnGenTargets HOT 4
- Logging Parameters help examples don't work
- Adding logging causes exception and failure HOT 3
- slngen failing when running on Windows Server 2022 and Linux intermittently HOT 4
- Freeze .NET 8 runtime version requirement HOT 1
- Support MSBuild Target for .NET 7 and 8 HOT 2
- Project file paths get scrambled with error MSB4025 HOT 2
- Support for nested folders in SlnGenSolutionFolder HOT 1
- Cannot build - either with our without .NET 8.0 HOT 6
- Place solution items in the respective folder hierarchy HOT 3
- Gather solution items from entire project list HOT 1
- Feature request: Customize solution using MSBuild properties when using tool HOT 3
- --collapsefolders = true not working for single sub-folders HOT 2
- error MSB4006: There is a circular dependency in the target dependency graph involving target "_GenerateRestoreProjectPathWalk" HOT 2
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 slngen.