Skip to content

Commit

Permalink
Built new release version 3.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
igor84 committed Feb 17, 2022
1 parent 18492c9 commit f298d65
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
5 changes: 3 additions & 2 deletions CreateDLL/CreateDLL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CreateDLL</RootNamespace>
<AssemblyName>NuGetForUnity</AssemblyName>
<TargetFramework>net472</TargetFramework>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
Expand Down Expand Up @@ -42,10 +43,10 @@
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Xml" />
<Reference Include="UnityEditor">
<HintPath>C:\Program Files\Unity\Editor\Data\Managed\UnityEditor.dll</HintPath>
<HintPath>C:\Program Files\Unity\Hub\Editor\2020.3.20f1\Editor\Data\Managed\UnityEditor.dll</HintPath>
</Reference>
<Reference Include="UnityEngine">
<HintPath>C:\Program Files\Unity\Editor\Data\Managed\UnityEngine.dll</HintPath>
<HintPath>C:\Program Files\Unity\Hub\Editor\2020.3.20f1\Editor\Data\Managed\UnityEngine.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
Binary file modified Packager/NuGetForUnity.unitypackage
Binary file not shown.
15 changes: 9 additions & 6 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
param([string]$OutputDirectory = ".\bin")

Import-Module UnitySetup -ErrorAction Stop -MinimumVersion 4.0.97
Import-Module VSSetup -ErrorAction Stop -MinimumVersion 2.0.1.32208
# Import-Module VSSetup -ErrorAction Stop -MinimumVersion 2.0.1.32208

Write-Host "Build NuGetForUnity " -ForegroundColor Green

Expand All @@ -18,13 +18,16 @@ Write-Host "Building package with Unity $projectVersion" -ForegroundColor Green


# Build the NuGetForUnity .dlls
$vspath = Get-VSSetupInstance |
Select-VSSetupInstance -Require Microsoft.Component.MSBuild -Latest |
Select-Object -ExpandProperty InstallationPath
# $vspath = Get-VSSetupInstance |
# Select-VSSetupInstance -Require Microsoft.Component.MSBuild -Latest |
# Select-Object -ExpandProperty InstallationPath

$msbuild = Get-ChildItem "$vspath" -Filter msbuild.exe -Recurse | Select-Object -First 1 -ExpandProperty FullName
$msbuild = Get-ChildItem "C:\Program Files\JetBrains\JetBrains Rider*\tools\MSBuild\Current\Bin\" -Filter msbuild.exe -Recurse | Select-Object -First 1 -ExpandProperty FullName
if ( !$msbuild -or $msbuild -eq "" ) {
throw "Could not find msbuild"
$msbuild = Get-ChildItem "C:\Program Files\Microsoft Visual Studio\*\*\MSBuild\Current\Bin\" -Filter msbuild.exe -Recurse | Select-Object -First 1 -ExpandProperty FullName
if ( !$msbuild -or $msbuild -eq "" ) {
throw "Could not find msbuild"
}
}

$ReferencePath = "$unityPath\Editor\Data\Managed\"
Expand Down

0 comments on commit f298d65

Please sign in to comment.