Replies: 1 comment 3 replies
-
Your sqlproj requires VS tools in order to build it. That's not contained in the .NET Core SDK container image. Instead, you'd want to target .NET Framework SDK. While .NET Framework SDK image does contain VS tools, it doesn't include the SSDT component. To add it, you can follow the instructions at https://docs.microsoft.com/visualstudio/install/build-tools-container?view=vs-2022 which describe how to install additional components. The specific component ID which you'd want to install is |
Beta Was this translation helpful? Give feedback.
-
Hi, I am trying to build a dacpac using the dotnet container, but when I try to use the
build
function it throws a errorThe error I am getting is this :
/app/Receivables.sqlproj(61,3): error MSB4019: The imported project "/usr/share/dotnet/sdk/3.1.416/Microsoft/VisualStudio/v11.0/SSDT/Microsoft.Data.Tools.Schema.SqlTasks.targets" was not found. Confirm that the expression in the Import declaration "/usr/share/dotnet/sdk/3.1.416//Microsoft/VisualStudio/v11.0/SSDT/Microsoft.Data.Tools.Schema.SqlTasks.targets" is correct, and that the file exists on disk.
I also tried to run from command line instead of a dockerfile, same error. I found some questions on the internet about the same error, but everyone I saw about that was during the building localy, since I am using docker I don't think the approaches also work for me.
This is my docker file
Can someone help me?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions