-
Notifications
You must be signed in to change notification settings - Fork 833
Open
Labels
Area-VSVS support for F# not covered elsewhereVS support for F# not covered elsewhereImpact-High(Internal MS Team use only) Describes an issue with extreme impact on existing code.(Internal MS Team use only) Describes an issue with extreme impact on existing code.
Milestone
Description
This issue has been moved from a ticket on Developer Community.
Having F# project like this
<Project Sdk="Uno.Sdk">
<PropertyGroup>
<TargetFrameworks>$(DotNetVersion);$(DotNetVersion)-windows10.0.22621</TargetFrameworks>
<TargetFrameworks Condition=" '$(OverrideTargetFramework)' != '' ">$(OverrideTargetFramework)</TargetFrameworks>
<UnoSingleProject>true</UnoSingleProject>
<OutputType>Library</OutputType>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!-- Ensures the .xr.xml files are generated in a proper layout folder -->
<GenerateLibraryLayout>true</GenerateLibraryLayout>
<!--
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.
-->
<!-- <WindowsSdkPackageVersion>10.0.22621.31</WindowsSdkPackageVersion> -->
</PropertyGroup>
<Target Name="XamlPreCompile" Condition="$(TargetFramework.Contains('windows10'))" />
</Project>
global.json
{
"msbuild-sdks": {
"Uno.Sdk": "5.2.175"
}
}
solution-config.props
<Project>
<!--
This file is used to control the platforms compiled by Visual Studio, and allow for a faster
build when testing for a single platform. This will also result in better intellisense, as
the compiler will only load the assemblies for the platform that is being built. You do not
need to use this when compiling from Visual Studio Code, the command line or other IDEs.
Instructions:
1) Copy this file and remove the ".sample" name
2) Uncomment the single property below for the target you want to build
3) Make sure to do a Rebuild, so that nuget restores the proper packages for the new target
Notes:
- You may optionally close the solution before making changes and reload the solution afterwards. This will avoid Visual Studio
asking you to reload any projects, it will also ensure that the changes are picked up by Visual Studio, and trigger a restore of
the packages.
- You may want to unload the platform heads that you are not going to build for. This will ensure that Visual Studio does not
try to build them, and will speed up the build process.
-->
<PropertyGroup>
<!-- Uncomment each line for each platform that you want to build: -->
<OverrideTargetFramework Condition="''!='hint: Windows App Sdk (WinUI)'">$(DotNetVersion)-windows10.0.22621</OverrideTargetFramework>
<!--<OverrideTargetFramework Condition="''!='hint: Windows App Sdk (WinUI)' AND '$(MSBuildProjectExtension)'=='.csproj'">$(DotNetVersion)-browserwasm;$(DotNetVersion)-windows10.0.22621</OverrideTargetFramework>
<OverrideTargetFramework Condition="''!='hint: Windows App Sdk (WinUI)' AND '$(MSBuildProjectExtension)'=='.fsproj'">$(DotNetVersion);$(DotNetVersion)-windows10.0.22621</OverrideTargetFramework>-->
<!-- <OverrideTargetFramework Condition="''!='hint: Webassembly' AND '$(MSBuildProjectExtension)'=='.csproj'">$(DotNetVersion)-browserwasm</OverrideTargetFramework> -->
<!-- <OverrideTargetFramework Condition="''!='hint: Webassembly' AND '$(MSBuildProjectExtension)'=='.fsproj'">$(DotNetVersion)</OverrideTargetFramework> -->
<!-- <OverrideTargetFramework Condition="''!='hint: Desktop'">$(DotNetVersion)-desktop</OverrideTargetFramework> -->
<!-- <OverrideTargetFramework Condition="''!='hint: iOS'">$(DotNetVersion)-ios</OverrideTargetFramework> -->
<!--<OverrideTargetFramework Condition="''!='hint: Android'">$(DotNetVersion)-android</OverrideTargetFramework>-->
<!-- <OverrideTargetFramework Condition="''!='hint: MacCatalyst'">$(DotNetVersion)-maccatalyst</OverrideTargetFramework> -->
</PropertyGroup>
</Project>
Original Comments
Feedback Bot on 7/10/2024, 03:35 AM:
(private comment, text removed)
Original Solutions
(no solutions)
Metadata
Metadata
Assignees
Labels
Area-VSVS support for F# not covered elsewhereVS support for F# not covered elsewhereImpact-High(Internal MS Team use only) Describes an issue with extreme impact on existing code.(Internal MS Team use only) Describes an issue with extreme impact on existing code.
Type
Projects
Status
New