File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 <AppDesignerFolder >Properties</AppDesignerFolder >
1010 <RootNamespace >CreateDLL</RootNamespace >
1111 <AssemblyName >NuGetForUnity</AssemblyName >
12+ <TargetFramework >net472</TargetFramework >
1213 <TargetFrameworkVersion >v4.7.2</TargetFrameworkVersion >
1314 <FileAlignment >512</FileAlignment >
1415 <TargetFrameworkProfile />
4243 <Reference Include =" System.Xml.Linq" />
4344 <Reference Include =" System.Xml" />
4445 <Reference Include =" UnityEditor" >
45- <HintPath >C:\Program Files\Unity\Editor\Data\Managed\UnityEditor.dll</HintPath >
46+ <HintPath >C:\Program Files\Unity\Hub\Editor\2020.3.20f1\ Editor\Data\Managed\UnityEditor.dll</HintPath >
4647 </Reference >
4748 <Reference Include =" UnityEngine" >
48- <HintPath >C:\Program Files\Unity\Editor\Data\Managed\UnityEngine.dll</HintPath >
49+ <HintPath >C:\Program Files\Unity\Hub\Editor\2020.3.20f1\ Editor\Data\Managed\UnityEngine.dll</HintPath >
4950 </Reference >
5051 </ItemGroup >
5152 <ItemGroup >
Original file line number Diff line number Diff line change 11param ([string ]$OutputDirectory = " .\bin" )
22
33Import-Module UnitySetup - ErrorAction Stop - MinimumVersion 4.0 .97
4- Import-Module VSSetup - ErrorAction Stop - MinimumVersion 2.0 .1.32208
4+ # Import-Module VSSetup -ErrorAction Stop -MinimumVersion 2.0.1.32208
55
66Write-Host " Build NuGetForUnity " - ForegroundColor Green
77
@@ -18,13 +18,16 @@ Write-Host "Building package with Unity $projectVersion" -ForegroundColor Green
1818
1919
2020# Build the NuGetForUnity .dlls
21- $vspath = Get-VSSetupInstance |
22- Select-VSSetupInstance - Require Microsoft.Component.MSBuild - Latest |
23- Select-Object - ExpandProperty InstallationPath
21+ # $vspath = Get-VSSetupInstance |
22+ # Select-VSSetupInstance -Require Microsoft.Component.MSBuild -Latest |
23+ # Select-Object -ExpandProperty InstallationPath
2424
25- $msbuild = Get-ChildItem " $vspath " - Filter msbuild.exe - Recurse | Select-Object - First 1 - ExpandProperty FullName
25+ $msbuild = Get-ChildItem " C:\Program Files\JetBrains\JetBrains Rider*\tools\MSBuild\Current\Bin\ " - Filter msbuild.exe - Recurse | Select-Object - First 1 - ExpandProperty FullName
2626if ( ! $msbuild -or $msbuild -eq " " ) {
27- throw " Could not find msbuild"
27+ $msbuild = Get-ChildItem " C:\Program Files\Microsoft Visual Studio\*\*\MSBuild\Current\Bin\" - Filter msbuild.exe - Recurse | Select-Object - First 1 - ExpandProperty FullName
28+ if ( ! $msbuild -or $msbuild -eq " " ) {
29+ throw " Could not find msbuild"
30+ }
2831}
2932
3033$ReferencePath = " $unityPath \Editor\Data\Managed\"
You can’t perform that action at this time.
0 commit comments