question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does Directory.Build.props not support <AssemblyTitle>?

See original GitHub issue

Directory.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:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
pengweiqhcacommented, Dec 6, 2018

@davkean Thanks, I use MSBuildProjectName replace AssemblyName

0reactions
drewnoakescommented, Aug 31, 2021

@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/

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found