Closed jmezach closed 2 years ago
The AssemblyName.KeyPair implementation was replaced with throw statements in https://github.com/dotnet/runtime/pull/50941, which was merged before v6.0.0-preview.5.21301.5.
I have also tried using the latest preview of DacFx, but that exhibits the same issue.
I started the process of opening this exact issue last week and traded emails with Leila Lali llali@microsoft.com but you beat me to the punch. This is a critical issue for our project as we rely on code-based dacpac deployments. I can provide any additional details, but it's exactly what was reported - as soon as you try to get a script against NET 6 the strong-name exception is raised.
@dzsquared I'm wondering if anyone has mentioned this to you yet? My understanding is the final release of .NET 6 is about a month or so away, and I'm assuming having DacFx not working with that at release would be undesirable 🙂
@jmezach sorry about the delay. I have a fix for this and planning to include it in the next release of DacFx Nuget package.
@llali No problem, looking forward to it. If you want I could take a preview release for a spin to see if that solves our issue.
the preview version of dacfx with this fix is now available in nuget.org. https://www.nuget.org/packages/Microsoft.SqlServer.DacFx/160.5323.3-preview
The preview version resolved the issue for me. Thank you.
I can confirm the same.
Do have an estimate when DACFX 160 is going to ship?
Thanks for confirming the fix. We're planning to release by end of the year.
I have just tried Microsoft.SqlServer.DacFX 160.5400.1-preview and it still fails with PNSE due to strong naming. (Exactly the same exception as in the OP).
I tried to update from 160.5371.2-preview
to 160.5400.1-preview
to see if anything broke but it still works fine for me.
Maybe an important detail: I'm deploying a net6.0 app to Azure AppService ("framework-dependent"), where it fails with PNSE. I have temporarily worked around it by disabling signing of the assembly which uses DacFX, but I'd rather not.
@dzsquared could this be closed?
this is fixed in stable release https://www.nuget.org/packages/Microsoft.SqlServer.DacFx/160.5400.1
I am still getting this error after using 160.5400.1 or 160.6161.0. Any help on this is appreciated.
Hi there, I'm the maintainer of MSBuild.Sdk.SqlProj and we've been working on upgrading that project to make it compatible with .NET 6. Unfortunately we've ran into an issue in DACFX where it seems that it is depending on Strong-name signing which seems to be no longer supported on .NET 6. We are seeing the following stack trace:
Steps to Reproduce:
dotnet new console
)TSqlModel
using the constructor that takes aSqlServerVersion
andTSqlModelOptions
.Did this occur in prior versions? If not - which version(s) did it work in? It works fine on .NET 5.
(DacFx/SqlPackage/SSMS/Azure Data Studio)