-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(wasm): workaround for invalid net9-browserwasm library detection
- Loading branch information
1 parent
ce498ef
commit 9bd0c1d
Showing
6 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace uno52Lib; | ||
|
||
public class Class1 | ||
{ | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"sdk": { | ||
"allowPrerelease": true | ||
}, | ||
"msbuild-sdks": { | ||
"Uno.Sdk.Private": "5.2.0-dev.2002" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<Project Sdk="Uno.Sdk.Private"> | ||
<PropertyGroup> | ||
<TargetFrameworks>net9.0;net9.0-ios;net9.0-maccatalyst;net9.0-windows10.0.19041;net9.0-browserwasm;net9.0-desktop</TargetFrameworks> | ||
|
||
<!-- Disabled for https://github.com/unoplatform/uno.check/issues/241 --> | ||
<TargetFrameworks Condition="!$([MSBuild]::IsOSPlatform('linux'))">$(TargetFrameworks);net9.0-android</TargetFrameworks> | ||
|
||
<!-- Disable android on msbuild .NET Framework until android 35 is supported --> | ||
<TargetFrameworks Condition="'$(MSBuildRuntimeType)' == 'Full'">$(TargetFrameworks.Replace('net9.0-android',''))</TargetFrameworks> | ||
<TargetFrameworks Condition="'$(MSBuildRuntimeType)' == 'Full'">$(TargetFrameworks.Replace('net9.0-ios',''))</TargetFrameworks> | ||
<TargetFrameworks Condition="'$(MSBuildRuntimeType)' == 'Full'">$(TargetFrameworks.Replace('net9.0-maccatalyst',''))</TargetFrameworks> | ||
|
||
<!-- Ensures the .xr.xml files are generated in a proper layout folder --> | ||
<GenerateLibraryLayout>true</GenerateLibraryLayout> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<UnoSdkDebugging>true</UnoSdkDebugging> | ||
<OutputType>Library</OutputType> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
</PropertyGroup> | ||
|
||
<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'"> | ||
<!-- | ||
If you encounter this error message: | ||
error NETSDK1148: A referenced assembly was compiled using a newer version of Microsoft.Windows.SDK.NET.dll. | ||
Please update to a newer .NET SDK in order to reference this assembly. | ||
This means that the two packages below must be aligned with the "build" version number of | ||
the "Microsoft.Windows.SDK.BuildTools" package above, and the "revision" version number | ||
must be the highest found in https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref. | ||
--> | ||
<!-- <FrameworkReference Update="Microsoft.Windows.SDK.NET.Ref" RuntimeFrameworkVersion="10.0.22621.28" /> | ||
<FrameworkReference Update="Microsoft.Windows.SDK.NET.Ref" TargetingPackVersion="10.0.22621.28" /> --> | ||
</ItemGroup> | ||
<Target Name="ValidateIsPackable" | ||
AfterTargets="CoreCompile;Build"> | ||
<Error Text="Expected IsPackable='false', however it actually equals '$(IsPackable)'." | ||
Condition="$(IsPackable) == 'true'" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters