-
Notifications
You must be signed in to change notification settings - Fork 344
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
MddBootstrapAutoInitializer does not compile with enabled ImplicitUsings #1686
Comments
Workaround: Create // Workaround for https://github.com/microsoft/WindowsAppSDK/issues/1686
global using Version = Microsoft.WindowsAppSDK.Runtime.Fix.Version;
namespace Microsoft.WindowsAppSDK.Runtime.Fix;
public class Version
{
public const ushort Major = 0;
public const ushort Minor = 319;
public const ushort Build = 455;
public const ushort Revision = 0;
public const ulong UInt64 = 0x0000013F01C70000;
public const string DotQuadString = "0.319.455.0";
} |
Am confused. You turned on implicit usings which brought together two disparate namespaces and a type collided (as expected). How is this Windows App SDK's fault? |
It adds the file to compile like a generator. |
Please see PR |
I'm not confused about the changes you made. I'm just trying to understand what problem implicit usings solves and why you think Windows App SDK should support this. |
As far as I know, they will be enabled by default for new net6 projects. |
That decision appears to have been reversed. https://devblogs.microsoft.com/dotnet/announcing-net-6-release-candidate-2/#net-sdk-c-project-templates-modernized
|
I mean, not at the SDK level, but when creating a new project, the MSBuild property |
It seems it was not included in the 1.0.0 stable release. I still get an error if I don't apply the workaround |
https://task.ms/38083595 for 1.0-servicing |
Servicing bug (1.0): https://task.ms/38083595
Bug with the intersection of Microsoft.WindowsAppSDK.Runtime.Version with System.Version.
It needs to use
global::
prefixes.Env:
Microsoft.WindowsAppSDK
:1.0.0-preview3
WindowsPackageType
:None
The text was updated successfully, but these errors were encountered: