-
Notifications
You must be signed in to change notification settings - Fork 0
/
MSBuildForUnity.Common.props
52 lines (42 loc) · 3.15 KB
/
MSBuildForUnity.Common.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<Project InitialTargets="_PropagateMSB4UProperties">
<!-- These are specific to this Unity project and can't be overridden -->
<PropertyGroup>
<UnityProjectAssetsPath>D:\workspace\SciXR\Assets</UnityProjectAssetsPath>
<_MSBuildForUnityGeneratedOutputDirectory>D:\workspace\SciXR\MSBuild</_MSBuildForUnityGeneratedOutputDirectory>
<MSBuildForUnityGeneratedProjectDirectory>$(_MSBuildForUnityGeneratedOutputDirectory)\Projects</MSBuildForUnityGeneratedProjectDirectory>
</PropertyGroup>
<!-- We set these common properties for current MSBuild and Unity project, unless we are being invoked from a different MSBuild and Unity project -->
<PropertyGroup Condition="'$(MSBuildForUnityVersion)'==''">
<MSBuildForUnityVersion>0.9.1</MSBuildForUnityVersion>
<MSBuildForUnityPlatformPropsDirectory>$(_MSBuildForUnityGeneratedOutputDirectory)\Projects</MSBuildForUnityPlatformPropsDirectory>
<MSBuildForUnityBuildOutputDirectory>$(_MSBuildForUnityGeneratedOutputDirectory)\Output</MSBuildForUnityBuildOutputDirectory>
<MSBuildForUnityPublishDirectory>$(_MSBuildForUnityGeneratedOutputDirectory)\Publish</MSBuildForUnityPublishDirectory>
<MSBuildForUnityDefaultOutputPath>$(UnityProjectAssetsPath)\Dependencies</MSBuildForUnityDefaultOutputPath>
<UnityCurrentPlatform>WSA</UnityCurrentPlatform>
<UnityCurrentTargetFramework>net46</UnityCurrentTargetFramework>
<UnityMajorVersion>2020</UnityMajorVersion>
<UnityMinorVersion>1</UnityMinorVersion>
<UnityEditorInstallPath>C:\Program Files\Unity\Hub\Editor\2020.1.17f\Editor</UnityEditorInstallPath>
</PropertyGroup>
<PropertyGroup>
<_MSB4UPropagateProperties>MSBuildForUnityVersion=$(MSBuildForUnityVersion);MSBuildForUnityPlatformPropsDirectory=$(MSBuildForUnityPlatformPropsDirectory);MSBuildForUnityBuildOutputDirectory=$(MSBuildForUnityBuildOutputDirectory);MSBuildForUnityPublishDirectory=$(MSBuildForUnityPublishDirectory);MSBuildForUnityDefaultOutputPath=$(MSBuildForUnityDefaultOutputPath);UnityCurrentPlatform=$(UnityCurrentPlatform);UnityCurrentTargetFramework=$(UnityCurrentTargetFramework);UnityMajorVersion=$(UnityMajorVersion);UnityMinorVersion=$(UnityMinorVersion);UnityEditorInstallPath=$(UnityEditorInstallPath)</_MSB4UPropagateProperties>
</PropertyGroup>
<!-- Disabling Clean; brief testing showed there wasn't any errors. If errors are encountered, this should be re-enabled.
<Target Name="_RemoveOutputDirectory" AfterTargets="Clean">
<RemoveDir Directories="$(OutputPath)"/>
</Target>
-->
<Target Name="_PropagateMSB4UProperties">
<ItemGroup>
<ProjectReference>
<AdditionalProperties>UnityConfiguration=$(UnityConfiguration);UnityPlatform=$(UnityPlatform);$(_MSB4UPropagateProperties);$(AdditionalProperties)</AdditionalProperties>
<!-- Override Package/Project References to not have the default private assets-->
<PrivateAssets>analyzers</PrivateAssets>
</ProjectReference>
<PackageReference>
<!-- Override Package/Project References to not have the default private assets-->
<PrivateAssets>analyzers</PrivateAssets>
</PackageReference>
</ItemGroup>
</Target>
</Project>