Building sqlclient package

msbuild
msbuild -t:BuildTests
msbuild -t:RunTests
those command described in offical doc and first command run succefully and second one give this error
""\source\repos\SqlClient\build.proj" (BuildTests target) (1) ->
"\source\repos\SqlClient\src\Microsoft.Data.SqlClient\add-ons\AzureKeyVaultProvider\Microsoft.Data.SqlClient
.AlwaysEncrypted.AzureKeyVaultProvider.csproj" (default target) (16:52) ->
"\source\repos\SqlClient\src\Microsoft.Data.SqlClient\add-ons\AzureKeyVaultProvider\Microsoft.Data.SqlClient
.AlwaysEncrypted.AzureKeyVaultProvider.csproj" (Build target) (16:53) ->
(ResolvePackageAssets target) ->
C:\Program Files\dotnet\sdk\9.0.303\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(266,5)
: error NETSDK1005: Assets file '\source\repos\SqlClient\src\Microsoft.Data.SqlClient\add-ons\AzureKeyVaultP
rovider\obj\project.assets.json' doesn't have a target for 'net462'. Ensure that restore has run and that you have includ
ed 'net462' in the TargetFrameworks for your project. [\source\repos\SqlClient\src\Microsoft.Data.SqlClient\
add-ons\AzureKeyVaultProvider\Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider.csproj::TargetFramework=net4
62]"
Was this page helpful?