Skip to content

TuringTrader build fails when upgrading to .NET 10 - Property definitions error #24

Description

@CancanTang

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 dotnet/docs#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.
net10.0-windows
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: dotnet/wpf#11008

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions