.Net 6 DLL file is not being updated with AssemblyVersion reference found in .csproj file

Viewed 394

I have a Blazor app that the generated DLL does not get updated with the referenced <AssemblyVersion>2022.01.14.1</AssemblyVersion> found in the .csproj file.

Nor does the <FileVersion> and <Version>

Microsoft Visual Studio Professional 2022 (64-bit) Version 17.0.5

1 Answers

How do you check the version, from the code or from the file properties?

I tried the scenario you described on a Blazor application, and after building the project in the properties of the .dll file I can see all versions I set in the .csproj

<PropertyGroup>
    <TargetFramework>net6.0</TargetFramework>
    <Nullable>enable</Nullable>
    <ImplicitUsings>enable</ImplicitUsings> 
    <AssemblyVersion>2022.01.14.1</AssemblyVersion>
    <FileVersion>2022.01.14.1</FileVersion>
    <Version>3.3.3.3-xyz</Version>

And the result can be seen in the image below:

enter image description here

Is it possible that some other external process changes the version in the files after you build?

Related