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.

Regression for custom AssemblyName in WPF apps

See original GitHub issue

Issue 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:

WpfApp1.zip

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:open
  • Created 2 years ago
  • Reactions:12
  • Comments:18 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
Svarrcommented, Sep 19, 2022

Can we expect a fix soon? This bug completely blocks development.

4reactions
ThomasGoulet73commented, Jan 14, 2022

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.

Read more comments on GitHub >

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

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