dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.65k stars 1.05k forks source link

Add command line parameter to exclude projects from solution #16067

Open qrjo opened 3 years ago

qrjo commented 3 years ago

I think it would be useful to have a command line parameter to exclude one or more project from the solution when restoring, building, publishing, etc.

I have a solution with a database project in it (.sqlproj) and dotnet restore complains about it, while dotnet build actually fails on it. Obviously, I don't need this project to be built for my application to build, so it would be nice if I could just ignore it altogether.

dotnet-issue-labeler[bot] commented 3 years ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

holytshirt commented 2 years ago

@qrjo Some progress has been made, preview has been released https://github.com/microsoft/DacFx/tree/main/src/Microsoft.Build.Sql

<Sdk Name="Microsoft.Build.Sql" Version="0.1.3-preview" />
qrjo commented 2 years ago

Cool, I'll keep an eye on that.