Does Directory.Build.props not support <AssemblyTitle>?
See original GitHub issueDirectory.Build.props:
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<AssemblyTitle>$(AssemblyName) ($(TargetFramework))</AssemblyTitle>
</PropertyGroup>
Tuhu.AssemblyInfo.cs:
[assembly: System.Reflection.AssemblyTitleAttribute(" (netstandard2.0)")]
Tuhu.csproj:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyTitle>$(AssemblyName) ($(TargetFramework))</AssemblyTitle>
</PropertyGroup>
Tuhu.AssemblyInfo.cs:
[assembly: System.Reflection.AssemblyTitleAttribute("Tuhu (netstandard2.0)")]
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
AssemblyName property in Directory.Build.targets has no ...
It works when I create a Directory.Build.props file right before building with MSBuild. The problem is that this only works if the AssemblyName...
Read more >Customize your build by folder or solution - MSBuild
Directory.Build.props is imported very early in Microsoft.Common.props, and properties defined later are unavailable to it. So, avoid referring ...
Read more >Visual Studio Directory.Build.props Caching
Change a property in the props file and rebuild. Notice that the resulting build does not contain the updated property and instead contains...
Read more >NuGet Packages update do not respect Directory.Build.props
I have a Directory.Build.props with this content and trying to update this package via Rider Nuget window, it updates (adds) new package to...
Read more >Customize your build - MSBuild
Learn about several extensibility hooks you can use to customize MSBuild ... Build.props or add properties and targets to Directory.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@davkean Thanks, I use MSBuildProjectName replace AssemblyName
@omprakashgade get a binary log from a command line build (
msbuild -bl myproj.csproj
) and search for the property in the structure log viewer: https://msbuildlog.com/