Skip to content

Commit cefad3c

Browse files
authored
Avoid global nuget cache, update for 3.0. (#828)
1 parent 7496a2b commit cefad3c

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

Documentation/README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,14 @@ In your new project add a new NuGet.config to point to the Microsoft.NETCore.App
141141
```xml
142142
<?xml version="1.0" encoding="utf-8"?>
143143
<configuration>
144-
<!-- NOTE: Leave this file here and keep it in sync with list in dir.props. -->
145-
<!-- The command-line doesn't need it, but the IDE does. -->
144+
<!--
145+
Use a fresh packages directory located in the working directory.
146+
This helps avoid nuget cache collision problems.
147+
-->
148+
<config>
149+
<add key="globalPackagesFolder" value="packages" />
150+
</config>
151+
<!-- Prefer the source-built packages over the ones from nuget.org. -->
146152
<packageSources>
147153
<clear/>
148154
<add key="local feed" value="E:\repos\source-build\bin\x64\Release\runtime" />
@@ -158,10 +164,10 @@ Then in your csproj we need to set the Runtime version:
158164

159165
<PropertyGroup>
160166
<OutputType>Exe</OutputType>
161-
<TargetFramework>netcoreapp2.2</TargetFramework>
167+
<TargetFramework>netcoreapp3.0</TargetFramework>
162168
<RootNamespace>source_build_test</RootNamespace>
163-
<RuntimeFrameworkVersion>2.2.0-preview1-26509-04</RuntimeFrameworkVersion>
164-
<NETCoreAppMaximumVersion>2.2</NETCoreAppMaximumVersion>
169+
<RuntimeFrameworkVersion>3.0.0-preview1-26509-04</RuntimeFrameworkVersion>
170+
<NETCoreAppMaximumVersion>3.0</NETCoreAppMaximumVersion>
165171
</PropertyGroup>
166172

167173
</Project>

0 commit comments

Comments
 (0)