Comments (2)
The code above is slightly different than you think. SlnGen uses an MSBuild API called "Static Graph" which loads all projects and then loads each project again per target framework. This means if you have:
<PropertyGroup>
<TargetFramework>net46;netcoreapp3.1</TargetFramework>
</PropertyGroup>
Static graph will load the project 3 times. The code above is ignoring the "inner" projects since they are not needed for solution file generation.
So something else is causing your project to be left out of the solution. This is the code that determines if a project should be in a solution:
slngen/src/Microsoft.VisualStudio.SlnGen/SlnProject.cs
Lines 345 to 358 in b72a477
Does any of that logic exclude your project?
from slngen.
Closing due to inactivity, feel free to reopen if my suggestion above didn't resolve the issue
from slngen.
Related Issues (20)
- Logging Parameters help examples don't work
- Adding logging causes exception and failure HOT 4
- 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
- The solution folder is not created properly if the driver letters are different. HOT 5
- Drop net5.0 and remove conditions from net8.0 TFM HOT 3
- Support .NET 9 previews HOT 4
- SlnProject has a property IsBuildable but doesn't do anything
- SlnGen unexpectedly fails when using dotnet restore
- Issue generating .sln file w/ 11.2.3 HOT 6
- slnx support HOT 4
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.