* Makes the DemoConsole application multitarget
Fixes#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
* Moves back from net472 to net481
* Modifies README.md file for DemoConsole and moves it one folder above, while also showing it in VS's Solution Explorer
* Add comment to address #13248
* Unwrap long comment and reindent for better auto formatting
* Removes leftover code from early attempt to fix#13234
* 1 removed references rto Framework folder - it will be added in the next PR
2. set main form name so that it reflects the target framework.
3. show readme.md in the solution explorer.
4. removed a default constructor, it will be generated for us.
5. it's ok to have lines almost 120 chars long
---------
Co-authored-by: Ricardo Bossan (BEYONDSOFT CONSULTING INC) (from Dev Box) <v-rbossan@microsoft.com>
Co-authored-by: Tanya Solyanik <tanyaso@microsoft.com>
This starts moving the tests to a single test root folder. That plays
better with `Directory.*` files, `.editorconfig` files, etc. (where we
can better align these with WPF). This will also help a bit with
`MAX_PATH`.
Moved tests are picking up the default Microsoft Shared key. The intent,
however, is to move all tests to the Open Shared key when the move is
complete.
Add a C# source generator that emits application bootstrap as described
in https://github.com/dotnet/designs/blob/main/accepted/2021/winforms/streamline-application-bootstrap.md
for the following properties:
* ApplicationVisualStyles
* ApplicationDefaultFont
* ApplicationHighDpiMode
* ApplicationUseCompatibleTextRendering
For top level statements the bootstrap also emits code to set STA mode.
A build will fail if any of the properties contain invalid or otherwise
incorrect values.
FontConverter is not available in netstandard 2.0, to bridge the gap
FontConverter logic has been partially copied from the corresponding .NET
runtime implementation to facilitate the comparable behaviour.
The only missing gap is parsing of FontFamily (which requires GDI+ calls),
which means that if a supplied font descriptor contains an invalid font
name it will cause an app to crash. This however is a desired behaviour.