You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is caused by the hardcoding of the version numbers in the CommonAssemblyInfo.cs file.
We're now using Cake.MinVer to generate the correct versionnumber, and sending that through MSBuild.
This doesn't work for the assemblies (, but it works for the package), since we don't generate the assembly info (GenerateAssebmlyInfo=false). If we set this to true, MSBuild can't override them. We can't set it all from Cake since some information there is target framework dependent. We can't roll that out by compiling for each frameworks, because our projects have different target frameworks.
So the resolution is to generate an AssemblyInfo.g.cs file in the build.cake script, and run that before the build starts. This file is then added to the framework, framework.legacy and the nunitlite projects. The others don't need any version.
* Fixes Issue #4705
* Delete src/src.sln
* Changed to using conditionals in the directory.build.props and adjusted csprojs and assemblyinfo.cs files accordingly.
* Adding caketest
* Update src/NUnitFramework/framework/nunit.framework.csproj
Co-authored-by: Manfred Brands <manfred-brands@users.noreply.github.com>
* Update src/NUnitFramework/nunit.framework.legacy/nunit.framework.legacy.csproj
Co-authored-by: Manfred Brands <manfred-brands@users.noreply.github.com>
* Update src/NUnitFramework/nunitlite/nunitlite.csproj
Co-authored-by: Manfred Brands <manfred-brands@users.noreply.github.com>
* updated files and directory.build.props
* commented out Choose, didnt work, in directory.build.props
* Updated some tests, fixing nullrefs
* reverted formatting
* fix compiler warnings/errors
* updated cake
* Raise Error when compiling for a TargetFramework with no AssemblyConfiguration
.NET 7.0 is out of support as of May 14th 2024.
* Fixed null suppressions
* Moved cake scripts to its own project and loaded the code into the build.cake
* Fix null
* Fix more minor stuff
* Fix SA warnings
* Using same file and assembly version numbers, same as we have done earlier
* Final review changes
* Fetch tags in CI
* Updated to cake 4. Get a warnign about other cake tools like minver, raised a PR there too, but the warning can be safely ignored for now
* Now we can use AsSpan in CakeScript
---------
Co-authored-by: Manfred Brands <manfred-brands@users.noreply.github.com>
This is caused by the hardcoding of the version numbers in the CommonAssemblyInfo.cs file.
We're now using Cake.MinVer to generate the correct versionnumber, and sending that through MSBuild.
This doesn't work for the assemblies (, but it works for the package), since we don't generate the assembly info (GenerateAssebmlyInfo=false). If we set this to true, MSBuild can't override them. We can't set it all from Cake since some information there is target framework dependent. We can't roll that out by compiling for each frameworks, because our projects have different target frameworks.
So the resolution is to generate an AssemblyInfo.g.cs file in the build.cake script, and run that before the build starts. This file is then added to the framework, framework.legacy and the nunitlite projects. The others don't need any version.
Thanks to @CharliePoole for finding this!
The text was updated successfully, but these errors were encountered: