Skip to content

Commit

Permalink
fix: editor project file
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdav30 committed Oct 23, 2024
1 parent 1382f6c commit ce27269
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/FixedMathSharp.Editor/FixedMathSharp.Editor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,25 @@
</PropertyGroup>
<PropertyGroup>
<UnityVersion>2022.3.20f1</UnityVersion>
<OSInstallRootPath>C:\Program Files</OSInstallRootPath>
</PropertyGroup>
<!-- Set OS-specific Unity Editor absolute/relative folder paths -->
<Choose>
<When Condition="$([MSBuild]::IsOsPlatform(Windows))">
<PropertyGroup>
<OSInstallRootPath Condition="'$(OSInstallRootPath)'==''">C:\Program Files</OSInstallRootPath>
<UnityManagedDir Condition="'$(UnityManagedDir)'==''">Editor\Data\Managed</UnityManagedDir>
<UnityExtensionsDir Condition="'$(UnityExtensionsDir)'==''">Editor\Data\UnityExtensions\Unity</UnityExtensionsDir>
</PropertyGroup>
</When>
<When Condition="$([MSBuild]::IsOsPlatform(OSX))">
<PropertyGroup>
<OSInstallRootPath Condition="'$(OSInstallRootPath)'==''">/Applications</OSInstallRootPath>
<UnityManagedDir Condition="'$(UnityManagedDir)'==''">Unity.app\Contents\Managed</UnityManagedDir>
<UnityExtensionsDir Condition="'$(UnityExtensionsDir)'==''">Editor\Unity.app\Contents\UnityExtensions\Unity</UnityExtensionsDir>
</PropertyGroup>
</When>
<When Condition="$([MSBuild]::IsOsPlatform(Linux))">
<PropertyGroup>
<OSInstallRootPath Condition="'$(OSInstallRootPath)'==''">$([System.Environment]::GetFolderPath('System.Environment+SpecialFolder.UserProfile'))</OSInstallRootPath>
<UnityManagedDir Condition="'$(UnityManagedDir)'==''">Editor\Data\Managed</UnityManagedDir>
<UnityExtensionsDir Condition="'$(UnityExtensionsDir)'==''">Editor\Data\UnityExtensions\Unity</UnityExtensionsDir>
</PropertyGroup>
</When>
</Choose>
Expand Down Expand Up @@ -95,8 +91,12 @@
<ProjectReference Include="..\FixedMathSharp\FixedMathSharp.csproj" />
</ItemGroup>
<ItemGroup>
<Reference Include="$(UnityEnginePath)" Private="false" />
<Reference Include="$(UnityEditorPath)" Private="false" />
<Reference Include="UnityEngine">
<HintPath>$(UnityEnginePath)</HintPath>
</Reference>
<Reference Include="UnityEditorPath">
<HintPath>$(UnityEditorPath)</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net472">
Expand Down

0 comments on commit ce27269

Please sign in to comment.