Regression for custom AssemblyName in WPF apps
See original GitHub issueIssue Description
The PropertyGroup item AssemblyName
cannot use macros for WPF app. This is regression, all was fine for previous MSBuild version (16)
Steps to Reproduce
Add to *.csproj something like :
<MainName>$(MSBuildProjectName.Replace('-NetCore', ''))</MainName>
<AssemblyName>$(MainName)</AssemblyName>
Example project attached:
Expected Behavior
Should compile/build
Actual Behavior
Error occurs :
MainWindow.xaml(10, 10): [MC3074] The tag 'DelayTextBox' does not exist in XML namespace 'clr-namespace:WpfApp1'. Line 10 Position 10.
When mentioned above part of *.csproj is deleted all compiles/build again…
Analysis
Important note : to reproduce, ensure that bin
and obj
directories are deleted.
Versions & Configurations
17.0.0.52104
Issue Analytics
- State:
- Created 2 years ago
- Reactions:12
- Comments:18 (4 by maintainers)
Top Results From Across the Web
F# WPF set custom assembly title
I'm designing a consumer application using F# WPF and I noticed that there is no equivalent of AssemblyInfo.cs in C# projects where I...
Read more >WPF Cannot create an instance of custom user control
The XAML designer for WPF runs your code in a different context than at runtime. The designer runs XDesProc.exe rather than your own...
Read more >WPF Application Resource, Content, and Data Files
Learn how to define and use an application-scope custom resource dictionary in Windows Presentation Foundation (WPF).
Read more >What's New in v23.1 - Latest Version
You can now use the following Item Templates within .NET applications: UI-Ready User Control; UI-Ready Form; Custom Data Editor; Custom Data Grid. DevExpress ......
Read more >Integrating Bing Maps With WPF
It shows a demo WPF application with a Bing Maps Map control, three Button ... Maps.MapControl.WPF;assembly= Microsoft.Maps.MapControl.WPF".
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 FreeTop 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
Top GitHub Comments
Can we expect a fix soon? This bug completely blocks development.
I have a potential fix that I’m experimenting with right now. It’s working but I have to do more tests to make sure that I’m not breaking anything. My other comment here gives a bit more explanation. Both issues are caused by the same bug.