dotnet core3.1/dotnet5.0 build sqlproj
See original GitHub issueSimilar to https://github.com/dotnet/sdk/issues/10441 & https://github.com/dotnet/sdk/issues/8546
All .sqlproj
files are msbuild project type ie:
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
As opposed to the new style SDK ie:
<Project Sdk="Microsoft.NET.Sdk">
–> A dotnet core 3.x, C# code application, is not able to build a sqlproj msbuild project. Example:
Project p = new Project("C:\\Users\<myself>\\my-cool-sql-app.sqlproj");
p.Build();
–> Results in:
Microsoft.Build.Exceptions.InvalidProjectFileException: 'The imported project "C:\Program Files\dotnet\sdk\2.1.522\Microsoft\VisualStudio\v15.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk
Can I otherwise instruct a dotnet application to use msbuild located elsewhere? Will SQL Server Database projects become an SDK type project? Or will dotnet be able to build non-SDK type projects?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:17 (3 by maintainers)
Top GitHub Comments
.NET 5 released 6 months back and .NET 6 is going to release in 6 months, but no support of SQLPROJ?
And to your other questions, there are not plans for SDK support for sqlproj files in the short term.