dbcd83075c
* Creating and publishing '*.symbols.nuget' to the blob feed. * Reverting 'generatenupkg' methodology. * Fixing formatting... * Overwrite should = 'false' * Second draft - Creating and publishing '*.symbols.nuget' to the blob feed. * Fixing a VS auto-update. * Removing the 'Microsoft.SymbolUploader.Build.Task' modifications; need to make a PR just for this. * Change "sdk.*.Microsoft.DotNet.SDK.*.symbols.nupkg" to "runtime.*.Microsoft.DotNet.SDK.*.symbols.nupkg"; removing the 'DotNetRestore' on the Symbols.csproj * Removing a 'todo' comment... * Putting back the 'dotnet restore' * Fixing a typo... * Logical separation of the 'nupkg' from the 'symbols.nupkg' enumeration; fixed 'swr' pattern. * Add "BLOBFEED_STORAGE_CONTAINER"
63 lines
2.5 KiB
XML
63 lines
2.5 KiB
XML
<Project ToolsVersion="15.0">
|
|
<Target Name="WriteNugetConfigFile">
|
|
|
|
<ItemGroup>
|
|
<NugetConfigPrivateFeeds Include="$(ExternalRestoreSources.Split(';'))" />
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup>
|
|
<NugetConfigHeader>
|
|
<![CDATA[
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<configuration>
|
|
<packageSources>
|
|
<!--To inherit the global NuGet package sources remove the <clear/> line below -->
|
|
<clear />
|
|
]]>
|
|
</NugetConfigHeader>
|
|
|
|
<NugetConfigCLIFeeds>
|
|
<![CDATA[
|
|
<add key="BlobFeed" value="https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json" />
|
|
<add key="templating" value="https://dotnet.myget.org/F/templating/api/v3/index.json" />
|
|
<add key="aspnetcore-release" value="https://dotnet.myget.org/F/aspnetcore-release/api/v3/index.json" />
|
|
<add key="websdkfeed" value="https://dotnet.myget.org/F/dotnet-web/api/v3/index.json" />
|
|
<add key="roslyn" value="https://dotnet.myget.org/f/roslyn/api/v3/index.json" />
|
|
<add key="symreader-native" value="https://dotnet.myget.org/f/symreader-native/api/v3/index.json" />
|
|
<add key="xunit" value="https://www.myget.org/F/xunit/api/v3/index.json" />
|
|
<add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
|
|
<add key="vstest" value="https://dotnet.myget.org/F/vstest/api/v3/index.json" />
|
|
<add key="nuget-build" value="https://dotnet.myget.org/F/nuget-build/api/v3/index.json" />
|
|
<add key="dotnet-corefxlab" value="https://dotnet.myget.org/F/dotnet-corefxlab/api/v3/index.json" />
|
|
]]>
|
|
</NugetConfigCLIFeeds>
|
|
|
|
<NugetConfigSuffix>
|
|
<![CDATA[
|
|
</packageSources>
|
|
</configuration>
|
|
]]>
|
|
</NugetConfigSuffix>
|
|
|
|
</PropertyGroup>
|
|
|
|
<WriteLinesToFile File="$(GeneratedNuGetConfig)"
|
|
Lines="$(NugetConfigHeader)"
|
|
Overwrite="true" />
|
|
|
|
<WriteLinesToFile Condition="'$(ExternalRestoreSources)' != '' and '$(DotNetBuildOffline)' != 'true'"
|
|
File="$(GeneratedNuGetConfig)"
|
|
Lines="<add key="PrivateBlobFeed" value="%(NugetConfigPrivateFeeds.Identity)" />"
|
|
Overwrite="false" />
|
|
|
|
<WriteLinesToFile Condition="'$(DotNetBuildOffline)' != 'true'"
|
|
File="$(GeneratedNuGetConfig)"
|
|
Lines="$(NugetConfigCLIFeeds)"
|
|
Overwrite="false" />
|
|
|
|
<WriteLinesToFile File="$(GeneratedNuGetConfig)"
|
|
Lines="$(NugetConfigSuffix)"
|
|
Overwrite="false" />
|
|
|
|
</Target>
|
|
</Project>
|