-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Description
When retargeting third part application to .NET 10 with dotnet-sdk-10.0.100-preview.7.25372.102, the WPF apps build failed with below error:
error MC3063: Property 'ColumnDefinitions' does not have a value.
or
Property 'RowDefinitions' does not have a value.
Reproduction Steps
Minimal Repro steps (Demo attached) :
The machine has dotnet-sdk-10.0.100-preview.7.25372.102 installed.
1.Create a .NET 9 WPF project.
2. Add the <Grid.ColumnDefinitions>
or <Grid.RowDefinitions>
define in MainWindow.xaml:
<Grid>
<Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
</Grid>
or
<Grid>
<Grid.RowDefinitions>
</Grid.RowDefinitions>
</Grid>
- Retarget the .csproj project to .NET 10.
<TargetFramework>net10.0-windows</TargetFramework>
- Build the project
Expected behavior
Project builds successful.
Actual behavior
Project builds failed with below error:
Property 'ColumnDefinitions' does not have a value. Line 11 Position 34
.
Regression?
Yes
Verify Scenarios:
1). Windows 11 24H2 AMD64 default target .NET 8 + dotnet-8.0.412: Pass
2). Windows 11 24H2 AMD64 default target .NET 8 + dotnet-10.0.100-preview.7.25372.102: Pass
3). Windows 11 24H2 AMD64 retarget .NET 9 + dotnet-10.0.100-preview.7.25372.102: Pass
4). Windows 11 24H2 AMD64 retarget .NET 10 + dotnet-10.0.100-preview.5.25272.110: Pass
5). Windows 11 24H2 AMD64 retarget .NET 10 + dotnet-10.0.100-preview.5.25277.114: Fail
6.) Windows 11 24H2 AMD64 retarget .NET 10 + dotnet-10.0.100-preview.7.25372.102: Fail
Known Workarounds
No response
Impact
No response
Configuration
Application Name: TuringTrader, MyMoneyNet
OS: Windows 11 24H2
CPU: X64
.NET Build Number: dotnet-sdk-10.0.100-preview.7.25372.102
App Source checking at: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2534470
Other information
App Repro Steps:
The machine has dotnet-sdk-10.0.100-preview.7.25372.102 installed.
1.Copy app source code to local machine.
2. Update the "\TuringTrader\TuringTrader\TuringTrader.csproj
" to retarget the app to .NET 10.
<TargetFramework>net10.0-windows</TargetFramework>
3. Open Command Prompt window and navigate to \TuringTrader\TuringTrader folder
.
4. Run "dotnet build
" command
Expected Result:
App builds successful.
Actual Result:
App builds failed with below error:
TuringTrader failed with 2 error(s) and 6 warning(s) (0.4s)
F:\AppSourceCode\TuringTrader\TuringTrader\TuringTrader.csproj : warning NU1903: Package 'Microsoft.Windows.Compatibility' 7.0.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-555c-2p6r-68mm
F:\AppSourceCode\TuringTrader\TuringTrader\TuringTrader.csproj : warning NU1902: Package 'System.Data.SqlClient' 4.8.3 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-8g2p-5pqh-5jmc
F:\AppSourceCode\TuringTrader\TuringTrader\TuringTrader.csproj : warning NU1903: Package 'System.Data.SqlClient' 4.8.3 has a known high severity vulnerability, https://github.com/advisories/GHSA-98g6-xh36-x2p7
F:\AppSourceCode\TuringTrader\TuringTrader\TuringTrader.csproj : warning NU1701: Package 'NetOfficeFw.Office 1.9.3' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net10.0-windows7.0'. This package may not be fully compatible with your project.
F:\AppSourceCode\TuringTrader\TuringTrader\TuringTrader.csproj : warning NU1701: Package 'NetOfficeFw.VBIDE 1.9.3' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net10.0-windows7.0'. This package may not be fully compatible with your project.
F:\AppSourceCode\TuringTrader\TuringTrader\TuringTrader.csproj : warning NU1701: Package 'stdole 7.0.3300' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net10.0-windows7.0'. This package may not be fully compatible with your project.
F:\AppSourceCode\TuringTrader\TuringTrader\OptimizerResults.xaml(13,34): error MC3063: Property 'ColumnDefinitions' does not have a value. Line 13 Position 34.
F:\AppSourceCode\TuringTrader\TuringTrader\OptimizerSettings.xaml(13,34): error MC3063: Property 'ColumnDefinitions' does not have a value. Line 13 Position 34.
Findings:
If add <ColumnDefinition>
for 'ColumnDefinitions'
or <RowDefinition>
for 'RowDefinitions', the error will disappear:
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
or
<Grid>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
</Grid>
@dotnet-actwx-bot @dotnet/compat