Skip to content

Commit f298d65

Browse files
committed
Built new release version 3.0.4
1 parent 18492c9 commit f298d65

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

CreateDLL/CreateDLL.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
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 />
@@ -42,10 +43,10 @@
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>
315 Bytes
Binary file not shown.

build.ps1

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
param([string]$OutputDirectory = ".\bin")
22

33
Import-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

66
Write-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
2626
if ( !$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\"

0 commit comments

Comments
 (0)