diff --git a/build/test-scripts/run-net7-template-linux.ps1 b/build/test-scripts/run-net7-template-linux.ps1 index 4d92516b0629..7f85d0fe3e53 100644 --- a/build/test-scripts/run-net7-template-linux.ps1 +++ b/build/test-scripts/run-net7-template-linux.ps1 @@ -78,7 +78,10 @@ $projects = @(1, "5.2/uno52AppWithLib/uno52AppWithLib/uno52AppWithLib.csproj", @(), @()), # 5.3 Blank with net9 - @(2, "5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj", @(), @()) + @(2, "5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj", @(), @()), + + # 5.3 lib + @(2, "5.3/uno53net9Lib/uno53net9Lib.csproj", @(), @()) # 5.3 blank publish testing # Disabled for LXD setup issues diff --git a/build/test-scripts/run-netcore-mobile-template-tests.ps1 b/build/test-scripts/run-netcore-mobile-template-tests.ps1 index f5321ab109e4..0a66bbdc2004 100644 --- a/build/test-scripts/run-netcore-mobile-template-tests.ps1 +++ b/build/test-scripts/run-netcore-mobile-template-tests.ps1 @@ -338,6 +338,9 @@ $projects = @(3, "5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj", @("-f", "net9.0-desktop"), @("macOS", "NetCore")), @(3, "5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj", @("-f", "net9.0-desktop", $sdkFeatures), @("macOS", "NetCore")), + # 5.3 Library + @(3, "5.3/uno53net9Lib/uno53net9Lib.csproj", @(), @("macOS", "NetCore")), + # Default mode for the template is WindowsAppSDKSelfContained=true, which requires specifying a target platform. @(4, "5.2/uno52AppWithLib/uno52AppWithLib/uno52AppWithLib.csproj", @("-p:Platform=x86" , "-p:TargetFramework=net8.0-windows10.0.19041"), @()), diff --git a/src/SolutionTemplate/5.3/uno53net9Lib/Class1.cs b/src/SolutionTemplate/5.3/uno53net9Lib/Class1.cs new file mode 100644 index 000000000000..7066a6320a7d --- /dev/null +++ b/src/SolutionTemplate/5.3/uno53net9Lib/Class1.cs @@ -0,0 +1,6 @@ +namespace uno52Lib; + +public class Class1 +{ +} + diff --git a/src/SolutionTemplate/5.3/uno53net9Lib/global.json b/src/SolutionTemplate/5.3/uno53net9Lib/global.json new file mode 100644 index 000000000000..df83353d73bc --- /dev/null +++ b/src/SolutionTemplate/5.3/uno53net9Lib/global.json @@ -0,0 +1,8 @@ +{ + "sdk": { + "allowPrerelease": true + }, + "msbuild-sdks": { + "Uno.Sdk.Private": "5.2.0-dev.2002" + } +} diff --git a/src/SolutionTemplate/5.3/uno53net9Lib/uno53net9Lib.csproj b/src/SolutionTemplate/5.3/uno53net9Lib/uno53net9Lib.csproj new file mode 100644 index 000000000000..1677aeb2ef9b --- /dev/null +++ b/src/SolutionTemplate/5.3/uno53net9Lib/uno53net9Lib.csproj @@ -0,0 +1,41 @@ + + + net9.0;net9.0-ios;net9.0-maccatalyst;net9.0-windows10.0.19041;net9.0-browserwasm;net9.0-desktop + + + $(TargetFrameworks);net9.0-android + + + $(TargetFrameworks.Replace('net9.0-android','')) + $(TargetFrameworks.Replace('net9.0-ios','')) + $(TargetFrameworks.Replace('net9.0-maccatalyst','')) + + + true + enable + enable + true + Library + true + + + + + + + + + + diff --git a/src/Uno.Sdk/targets/Uno.Common.Wasm.targets b/src/Uno.Sdk/targets/Uno.Common.Wasm.targets index cda84acaf8b0..08f034bc31b5 100644 --- a/src/Uno.Sdk/targets/Uno.Common.Wasm.targets +++ b/src/Uno.Sdk/targets/Uno.Common.Wasm.targets @@ -18,6 +18,9 @@ false + + false + true