dotnet build's parameter NetCoreBuild is not defined #186
-
Read me documents the build process with: However, dotnet build does not define the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
You do not need it with the latest SDK version |
Beta Was this translation helpful? Give feedback.
-
DacFx/src/Microsoft.Build.Sql/sdk/Sdk.targets Lines 10 to 12 in 61888b2 Instead of passing the parameter via <PropertyGroup>
<NetCoreBuild>true</NetCoreBuild>
</PropertyGroup> However, as ErikEJ says, this is no longer necessary with the latest SDK version |
Beta Was this translation helpful? Give feedback.
-
Why is it so complicated to make them both use the same build? Wouldn't it
just be changing it to use the same? In any case, it would be helpful for
it to be documented in the help file so people would know what and why the
builds are doing what they do.
…On Thu, Dec 1, 2022, 5:17 PM Z Chen ***@***.***> wrote:
The NetCoreBuild property is still needed for the build process to load
the correct assemblies. When you build with dotnet build, NetCoreBuild is
true and it will use the assemblies packaged in this SDK. When you build
with SSDT, NetCoreBuild is false and it will use the assemblies installed
by SSDT. The latest SDK version just handles setting the property for you.
We hope to clean this up so SSDT also uses the assemblies from the SDK.
—
Reply to this email directly, view it on GitHub
<#186 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYEG2E7ZFHVDN5GNW73FKN3WLEPYPANCNFSM6AAAAAASGGOOOQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
/p
parameters in general are documented at https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-build#msbuildNetCoreBuild
is not a generic parameter, it is specific to this SDK. You can see how it is used inDacFx/src/Microsoft.Build.Sql/sdk/Sdk.targets
Lines 10 to 12 in 61888b2