-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQLProj Targets Wrong Framework Despite Explicit net6.0 Specification #330
Comments
I am seeing a similar issue, yet I set my version to 6.0.414. My .proj filedatabase-project {1DF1814C-4D86-4B32-AC14-9DDFD3D868AD} Microsoft.Data.Tools.Schema.Sql.Sql160DatabaseSchemaProvider 1033, CI True 7 True ---------------------------------------------------My global.json file: {
|
Hi! What's the status on this? All our projects use |
* Add pr-validation * Add DacFx.sln to tests * Add dotnet pack command * Change default target to netstandard2.1 * Add NetcoreBuild property * Add a test for #330 * Check for dotnet in DOTNET_INSTALL_DIR * Use /usr/share/dotnet * Change dotnet variable and fail fast * Fix matrix * Add dotnet restore * Add target framework to dotnet restore * Revert yml changes * Try matrix again * Change fail fast to false * Add target framework * Add test for #278 * Move target framework to sdk.props
Steps to Reproduce:
restore.log
Below is the projects.assets.json showing the net46 as the referenced assembly
{ "version": 3, "targets": { ".NETFramework,Version=v4.6": { // ... // (other settings) // ... } }, "projectFileDependencyGroups": { ".NETFramework,Version=v4.6": [ "Microsoft.NETFramework.ReferenceAssemblies >= 1.0.0" ] }, "project": { "restore": { "originalTargetFrameworks": [ "net6.0" ], "frameworks": { "net46": { "targetAlias": "net6.0", // ... } } }, "frameworks": { "net46": { "targetAlias": "net6.0", // ... } } } }
Below is the output of dotnet info:
`┌──(astraeus㉿localhost)-[~/neuroX/ICE/ICE/ICE.Services/DocumentManager-MS/ICE.Services.DocumentManager.DB.SQL]
└─$ dotnet --info
.NET SDK (reflecting any global.json):
Version: 6.0.413
Commit: 10710f7d8e
Runtime Environment:
OS Name: kali
OS Version: 2023.3
OS Platform: Linux
RID: linux-x64
Base Path: /usr/share/dotnet/sdk/6.0.413/
Host:
Version: 7.0.10
Architecture: x64
Commit: a6dbb800a4
.NET SDKs installed:
6.0.413 [/usr/share/dotnet/sdk]
7.0.400 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.21
Microsoft.AspNetCore.App 7.0.10
Microsoft.NETCore.App 6.0.21
Microsoft.NETCore.App 7.0.10
Other architectures found:
None
Environment variables:
Not set
global.json file:
/home/astraeus/neuroX/ICE/ICE/global.json`
and here's the global.json for the project:
{ "sdk": { "version": "6.0.413" } }
Did this occur in prior versions? If not - which version(s) did it work in?
microsoft.build.sql/0.1.10-preview
The text was updated successfully, but these errors were encountered: