-
Notifications
You must be signed in to change notification settings - Fork 790
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
visual studio build 15.9.5 not applying assembluinfo #6074
Comments
Edited source code for better formatting |
Ignored in Visual Studio 2017 |
@kevinneufeld I assume this is with the non-.NET SDK-style (aka old-style) project types? |
@KevinRansom any ideas? |
@cartermp we have a mix of project type both older as well as newer. We are slowly migrating to the newer project styles and azure functions 2.0. Do you have an alternative method to apply assembly info? |
Are you using this? <PropertyGroup>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup> Alternatively, so long as your projects are using a .NET SDK corresponding with .NET Core 2.1 or higher, you can also auto generate them via properties such as those specified in a Directory.build.props file. This is the preferred mechanism for .NET Core, but you can also apply the above technique. |
@cartermp yes we are using the following: <PropertyGroup>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup> We use GitVersion to update our |
Unfortunately, there may be issues with #3113 as well 😞 Basically, if you use the compiler within Visual Studio to do your build, autogeneration should work. But if you use |
Autogenerate works and generates the attributes and they are included in the assembly. We also need to generate and embed a native resource in the built .dll that contains this block so that they can be displayed on the details tab in explorer. A fix is not yet scheduled, but I would expect it to be implemented sometime after Dev16.0 RTM's. |
@cartermp,
I was also able to try out the auto-gen of the assembly info; this may work out better for us - using GitVersion and the when attribute Conditions: <When Condition="'$(CI)'=='true' ">
<PropertyGroup>
<Company>SomeCompanyName</Company>
<Authors>SomeCompanyNameTeam</Authors>
<PackageId>ACoolPackage</PackageId>
<Version>$(GitVersion_InformationalVersion)</Version>
<AssemblyVersion>$(GitVersion_AssemblySemVer)</AssemblyVersion>
<FileVersion>$(GitVersion_AssemblySemVer)</FileVersion>
</PropertyGroup>
</When> The above works with MSBuild command line and within visual studio; If the |
That is a NettSDK/Nuget versioning validation not the F# compiler, I get the same reasult in C# too. NETSDK1018
Built with this error:
@Livaroc will be able to point you in the right direction. |
@KevinRansom thanks for the insight, I had to alter our pattern to match SemVer 2.0 |
Hello,
We have had this issue since build 15.9.4; on our F# project assemblyinfo.fs is no longer being honoured/applyed to the dlls.
AssemblyInfo.fs:
This issue has been moved from https://developercommunity.visualstudio.com/content/problem/422451/visual-studio-build-1595-not-applying-assembluinfo.html
VSTS ticketId: 762364
These are the original issue comments:
(no comments)
These are the original issue solutions:
(no solutions)
The text was updated successfully, but these errors were encountered: