TuringTrader build fails when upgrading to .NET 10 - Property definitions error
Just a friendly heads-up.
When retargeting TuringTrader application to .NET 10 with dotnet-sdk-10.0.100-preview.7.25372.102, the app build failed with below error:
error MC3063: Property 'ColumnDefinitions' does not have a value.
or
Property 'RowDefinitions' does not have a value.
After investigation, the issue was found to be caused by this breaking change https://github.com/dotnet/docs/issues/47743. If TuringTrader plans to upgrade to .NET 10, this can serve as a reference.
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
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'
Reference: https://github.com/dotnet/wpf/issues/11008
Hello CancanTang,
Thanks for letting me know, much appreciated. I'll have a look, when I get to it. Unfortunately, that might take a little while, as I am currently tied up in a bunch of other projects. Is there a pressing need why you needed to upgrade to .Net 10?
Thank you, Cheers
Liz