Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuget setup #1

Merged
merged 2 commits into from
Jul 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions ArWindow/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,4 @@ sysinfo.txt
*.unitypackage

# Crashlytics generated file
crashlytics-build.properties

crashlytics-build.properties
4 changes: 4 additions & 0 deletions ArWindow/Assets/Scripts/.nuget/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
!*.csproj
# nuget
bin/
obj/
26 changes: 26 additions & 0 deletions ArWindow/Assets/Scripts/.nuget/ArWindow.Nuget.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net471</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Emgu.CV" Version="3.4.3.3016" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
</ItemGroup>

<Target Name="Copy DLLs" AfterTargets="AfterBuild">
<Delete Files="$(OutDir)/$(MSBuildProjectName).dll" />
<Delete Files="$(OutDir)/$(MSBuildProjectName).pdb" />

<RemoveDir Directories="$(MSBuildProjectDirectory)/../NugetDlls" />

<CreateItem Include="$(OutDir)/**/*">
<Output ItemName="AllOutDirFiles" TaskParameter="Include" />
</CreateItem>
<Copy SourceFiles="@(AllOutDirFiles)" DestinationFolder="$(MSBuildProjectDirectory)/../NugetDlls" />
<Copy SourceFiles="Nuget/.gitignore" DestinationFolder="$(MSBuildProjectDirectory)/../NugetDlls" />
</Target>

</Project>
2 changes: 2 additions & 0 deletions ArWindow/Assets/Scripts/.nuget/Nuget/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.dll
*.dll.meta
13 changes: 13 additions & 0 deletions ArWindow/Assets/Scripts/ArWindow.asmdef
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "ArWindow",
"references": ["ArWindow.Nuget"],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": true,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions ArWindow/Assets/Scripts/NugetDlls/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.dll
*.dll.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 14 additions & 3 deletions ArWindow/Packages/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@
"com.unity.modules.video": "1.0.0",
"com.unity.modules.vr": "1.0.0",
"com.unity.modules.wind": "1.0.0",
"com.unity.modules.xr": "1.0.0"
}
}
"com.unity.modules.xr": "1.0.0",
"com.unitycsprojnuget": "1.0.1"
},
"scopedRegistries": [
{
"name": "package.openupm.com",
"url": "https://package.openupm.com",
"scopes": [
"com.openupm",
"com.unitycsprojnuget"
]
}
]
}
7 changes: 7 additions & 0 deletions ArWindow/Packages/packages-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@
},
"url": "https://packages.unity.com"
},
"com.unitycsprojnuget": {
"version": "1.0.1",
"depth": 0,
"source": "registry",
"dependencies": {},
"url": "https://package.openupm.com"
},
"com.unity.modules.ai": {
"version": "1.0.0",
"depth": 0,
Expand Down
9 changes: 0 additions & 9 deletions arwindow/Assets/Plugins/JsonDotNet/Assemblies.meta

This file was deleted.

9 changes: 0 additions & 9 deletions arwindow/Assets/Plugins/JsonDotNet/Assemblies/AOT.meta

This file was deleted.

Loading