|
47 | 47 | <Reference Include="0Harmony" Condition="'$(EnableHarmony)' == 'true'" HintPath="$(GamePath)\smapi-internal\0Harmony.dll" Private="$(CopyModReferencesToBuildOutput)" /> |
48 | 48 | </ItemGroup> |
49 | 49 |
|
50 | | - <!-- Windows --> |
| 50 | + <!-- Windows only --> |
51 | 51 | <ItemGroup Condition="'$(OS)' == 'Windows_NT'"> |
52 | | - <Reference Include="Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" Private="$(CopyModReferencesToBuildOutput)" /> |
53 | | - <Reference Include="Microsoft.Xna.Framework.Game, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" Private="$(CopyModReferencesToBuildOutput)" /> |
54 | | - <Reference Include="Microsoft.Xna.Framework.Graphics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" Private="$(CopyModReferencesToBuildOutput)" /> |
55 | | - <Reference Include="Microsoft.Xna.Framework.Xact, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" Private="$(CopyModReferencesToBuildOutput)" /> |
56 | 52 | <Reference Include="Netcode" HintPath="$(GamePath)\Netcode.dll" Private="$(CopyModReferencesToBuildOutput)" /> |
57 | 53 | </ItemGroup> |
58 | 54 |
|
59 | | - <!-- Linux/Mac --> |
60 | | - <ItemGroup Condition="'$(OS)' != 'Windows_NT'"> |
61 | | - <Reference Include="MonoGame.Framework" HintPath="$(GamePath)\MonoGame.Framework.dll" Private="$(CopyModReferencesToBuildOutput)" /> |
62 | | - </ItemGroup> |
| 55 | + <!-- Game framework --> |
| 56 | + <Choose> |
| 57 | + <When Condition="$(DefineConstants.Contains(SMAPI_FOR_XNA))"> |
| 58 | + <ItemGroup> |
| 59 | + <Reference Include="Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" Private="$(CopyModReferencesToBuildOutput)" /> |
| 60 | + <Reference Include="Microsoft.Xna.Framework.Game, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" Private="$(CopyModReferencesToBuildOutput)" /> |
| 61 | + <Reference Include="Microsoft.Xna.Framework.Graphics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" Private="$(CopyModReferencesToBuildOutput)" /> |
| 62 | + <Reference Include="Microsoft.Xna.Framework.Xact, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" Private="$(CopyModReferencesToBuildOutput)" /> |
| 63 | + </ItemGroup> |
| 64 | + </When> |
| 65 | + <Otherwise> |
| 66 | + <ItemGroup> |
| 67 | + <Reference Include="MonoGame.Framework" HintPath="$(GamePath)\MonoGame.Framework.dll" Private="$(CopyModReferencesToBuildOutput)" /> |
| 68 | + </ItemGroup> |
| 69 | + </Otherwise> |
| 70 | + </Choose> |
63 | 71 |
|
64 | 72 |
|
65 | 73 | <!--********************************************* |
|
0 commit comments