dotnet / dotnet/wpf

Regression for custom AssemblyName in WPF apps

Open
#5,711 23 comments 14 reactions 1 assignee Claimed by @Kuldeep-MS View on GitHub
Bug
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

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

```xml
$(MSBuildProjectName.Replace('-NetCore', ''))
$(MainName)
```

Example project attached:

[WpfApp1.zip](https://github.com/dotnet/msbuild/files/7504674/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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.