docs icon indicating copy to clipboard operation
docs copied to clipboard

CS7034 and CS7035 lead to 404 page.

Open ALiwoto opened this issue 1 year ago • 2 comments

Describe the issue or suggestion

CS7035 "Specified version does not conform to the recommended format"

Visual studio points to https://msdn.microsoft.com/query/roslyn.query?appId=roslyn&k=k(CS7034) and then this link redirects to a 404 page: https://learn.microsoft.com/en-us/dotnet/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error?f1url=%3FappId%3Droslyn%26k%3Dk(CS7034)

image

Is it possible to add documentation page for this error as well?

ALiwoto avatar Feb 05 '24 11:02 ALiwoto

Hello @ALiwoto! Yes, these errors are not yet documented. If you can provide me with the full repro for this error (code, setup maybe) then I will be glad to create that page. CC: @BillWagner hoping for you to assign me to this issue.

BartoszKlonowski avatar Feb 05 '24 16:02 BartoszKlonowski

@BartoszKlonowski

hoping for you to assign me to this issue.

Done. Thanks again.

BillWagner avatar Feb 06 '24 15:02 BillWagner

Hey @ALiwoto! Kind reminder from my side hoping you can provide me with a repro for these errors, so I can proceed with this issue. 🙏

BartoszKlonowski avatar Jun 04 '24 22:06 BartoszKlonowski

Hi @BartoszKlonowski In a .NET Framework project, find the AssemblyInfo.cs file (it's also possible to add it yourself in a .NET project, but you will have to set the auto generate property to false, so you don't get duplicate attribute error), and modify these attributes:

// CS7034: The specified version string does not conform to the required format - major[.minor[.build[.revision]]]]
[assembly: AssemblyVersion("2.0.1-preview6")]

// CS7035: Specified version does not conform to the recommended format
[assembly: AssemblyFileVersion("4.3.201702.80525")]

ALiwoto avatar Jun 04 '24 22:06 ALiwoto