-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the DemoConsole application multi-targeted to both .NET and .NET Framework #12830
Comments
@Tanya-Solyanik @LeafShi1 @Epica3055 I created PR #12885 to show my current approach for making However, the build fails with the following errors:
It looks like some dependencies aren't resolving correctly for Is there an existing approach for handling this, or should we explore alternative strategies? |
It does not have to be net462, it could be 4.8.1 to test against the latest. Does the version make a difference? |
The .NET Framework version of the build can't reference the solution projects, it should reference the GAC'd assemblies instead. This assembly should be replaced by System.Design and System.Drawing.Design |
- Sets `DesignerSerializationVisibility` to `Hidden` in `PropertyGridExt.DesignerHost` - None - No - Minimal - Manual - 10.0.100-preview.3.25125.5
… `PropertyGridExt.DesignerHost` (#13043) Related #12830 - Sets `DesignerSerializationVisibility` to `Hidden` in `PropertyGridExt.DesignerHost` - None - No - Minimal - Manual - 10.0.100-preview.3.25125.5 Co-authored-by: Ricardo Bossan (BEYONDSOFT CONSULTING INC) (from Dev Box) <v-rbossan@microsoft.com>
…en` in `PropertyGridExt.DesignerHost` (dotnet#13043) Related dotnet#12830 - Sets `DesignerSerializationVisibility` to `Hidden` in `PropertyGridExt.DesignerHost` - None - No - Minimal - Manual - 10.0.100-preview.3.25125.5 Co-authored-by: Ricardo Bossan (BEYONDSOFT CONSULTING INC) (from Dev Box) <v-rbossan@microsoft.com>
… multiple target frameworks (`$(NetCurrent)-windows;net481`) Fixes dotnet#12830 - Updated `DemoConsole.csproj` and `DesignSurfaceExt.csproj` to support multiple target frameworks (`$(NetCurrent)-windows;net481`). - Adjusted `TargetFramework` property to avoid over-building. - Enabled `SignAssembly` and `GenerateAssemblyInfo` properties in the project files. - Updated resource and reference handling in `DemoConsole.csproj` and `DesignSurfaceExt.csproj` to improve compatibility. - Fixed `Controls.AddRange` usage to use the correct syntax in `MainForm.MyUserControl.cs`. - Corrected `Controls.AddRange` call in `MainForm.cs` to `Controls.Add`. - Suppressed `IDE0057` warning and reverted to `Substring` method for compatibility in `NameCreationServiceImp.cs`. - Changed `StartsWith('_')` check by directly accessing the first character in `NameCreationServiceImp.cs` for compatibility. - Disabled error `CA1824` for projects `DemoConsole` and `DesignSurficeExt`, because it would be triggered even though properly configured in those projects, according to the fix provided by the [documentation](https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1824#fix-violations). - None - No - Minimal - `DemoConsole` would not run on `net481`. - Manual - 10.0.100-alpha.1.25077.2
… multiple target frameworks (`$(NetCurrent)-windows;net481`). Fixes dotnet#12830 - Updated `DemoConsole.csproj` and `DesignSurfaceExt.csproj` to support multiple target frameworks (`$(NetCurrent)-windows;net481`). - Adjusted `TargetFramework` property to avoid over-building. - Enabled `SignAssembly` and `GenerateAssemblyInfo` properties in the project files. - Updated resource and reference handling in `DemoConsole.csproj` and `DesignSurfaceExt.csproj` to improve compatibility. - Fixed `Controls.AddRange` usage to use the correct syntax in `MainForm.MyUserControl.cs`. - Corrected `Controls.AddRange` call in `MainForm.cs` to `Controls.Add`. - Suppressed `IDE0057` warning and reverted to `Substring` method for compatibility in `NameCreationServiceImp.cs`. - Changed `StartsWith('_')` check by directly accessing the first character in `NameCreationServiceImp.cs` for compatibility. - Disabled error `CA1824` for projects `DemoConsole` and `DesignSurficeExt`, because it would be triggered even though properly configured in those projects, according to the fix provided by the [documentation](https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1824#fix-violations). - None - No - Minimal - `DemoConsole` would not run on `net481`. - Manual - 10.0.100-preview.3.25125.5
.NET version
10.0.100-alpha.1.25072.10
Did it work in .NET Framework?
Not tested/verified
Did it work in any of the earlier releases of .NET Core or .NET 5+?
Not an issue, need to modify DemoConsole application with multi-targeted
Issue description
Make the DemoConsole application in Winforms repo multi-targeted to both .NET and .NET Framework so that we can validate where we've got regressions from NetFX
The text was updated successfully, but these errors were encountered: