-
Notifications
You must be signed in to change notification settings - Fork 48
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
Unknown target framework moniker #192
Comments
Hmm, I believe that I haven't had any problems with it so far to be honest, although I haven't opened the solution in Visual Studio at all. I usually use VS Code which doesn't seem to have any issues with it. |
You could be right in that On the bright side: I got the error because of a newer .NET5 SDK and an old(er) version of Visual Studio. The following line will also need to be changed:
And then of course the line you mentioned (and the error message below it) should be altered. I thought |
I wonder how long |
I edited my comment above. Turns out SDK 2.1 sets |
I guess it is time to drop support for .NET Core 2.1 anyway since it has gone out of support. |
I'm thinking that maybe we should do a 2.0 release in which we drop support for .NET Core 2.1 (since it is out of support) and add support for .NET 6 (since that is now Go Live) and include all of the other changes and include this change as well. For people that are still on .NET Core 2.1 they can stick with version 1.16 for now, but my guess is that most people use at least 3.1 so they can easily upgrade to 2.0. @jeffrosenberg @ErikEJ What do you think? |
Good idea, maybe it should stay as 2.0-preview until 6.0 RTM? |
Yeah, that makes sense. |
Sounds good to me! |
MSBuild.Sdk.SqlProj/version.json Line 3 in addbf26
Does the pipeline change this automatically, or can I just replace this with 2.0.0-beta ?
|
Yeah, that should probably be updated to be |
I can get the
The command leading to this exception:
Adding a Any ideas on how to solve this? |
That's an interesting error. I thought .NET Core has never supported strong-name signing, but perhaps they've only started throwing exceptions when trying to use it with .NET 6. Do we know where this occurs in our code? The |
I'm thinking this is the same issue. Looks like it should have been resolved? dotnet/msbuild#6389 |
I've asked about it here: dotnet/core#6688 (comment) |
The MSBuild fix dotnet/msbuild#6395 modified only the Microsoft.Build.BackEnd.TranslatorHelpers class, which also appeared in the stack trace in dotnet/msbuild#6389. Because your stack trace does not include that class, I don't think the MSBuild fix can help solve this issue. |
I'm afraid you are correct. |
I really think this is an issue in DacFx and has to be fixed there. Unfortunately that isn't open source yet. But they do have a repo for filing issues here. I'll go ahead and file an issue there. |
It seems that the 16.x preview release of DACFX solves that issue, so that's the good news. Unfortunately it seems that we can't use |
So I've gone back to using |
MSBuild.Sdk.SqlProj/src/DacpacTool/DacpacTool.csproj
Line 5 in e57fc24
netcoreapp5.0
should benet5.0
The test project targets net5.0. In Visual Studio that leads to the error message:
The text was updated successfully, but these errors were encountered: