-
Notifications
You must be signed in to change notification settings - Fork 127
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
RequiresAssemblyFilesAnalyzer throws InvalidCastException #2651
Comments
Duplicate of #2642 |
Which public release will include the fix? Can you please provide a workaround in the meanwhile? |
I think it is set to ship with the next patch release of the 6.0.2xx SDK, @agocke can you confirm? As a workaround, you have a few options:
|
Great, thank you. Disabling temporarily with a property is a good workaround in my scenario. |
I just realized that setting |
Still repros in 6.0.201. |
From dotnet/roslyn#59749
Version Used: 6.0.200, bug is new in this version, i.e. was not present in 6.0.1
Steps to Reproduce:
dotnet build
Expected Behavior:
No compile time exception and no warning.
Actual Behavior:
Repro project details:
PublishSingleFile=true
must be set in the project file, and both type constraints are needed in the source file.Test1.csproj
Class1.cs
The text was updated successfully, but these errors were encountered: