For better consistency between VS and CLI, specify resource sources in csproj rather than NuGet.config

This was not possible before because of the
`Microsoft.NET.Sdk.Razor/2.1.0-preview2-30230` entry in `Sdk`, which
can't be loaded from a custom restore source. But since that's on
NuGet.org now, it's no longer a problem.
This commit is contained in:
Steve Sanderson 2018-04-05 10:41:13 +01:00
parent d3dc294d5e
commit 902625579b
6 changed files with 9 additions and 13 deletions

View File

@ -71,7 +71,6 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "BlazorHosted.CSharp", "BlazorHosted.CSharp", "{73DA1DFD-79F0-4BA2-B0B6-4F3A21D2C3F8}"
ProjectSection(SolutionItems) = preProject
src\Microsoft.AspNetCore.Blazor.Templates\content\BlazorHosted.CSharp\global.json = src\Microsoft.AspNetCore.Blazor.Templates\content\BlazorHosted.CSharp\global.json
src\Microsoft.AspNetCore.Blazor.Templates\content\BlazorHosted.CSharp\NuGet.config = src\Microsoft.AspNetCore.Blazor.Templates\content\BlazorHosted.CSharp\NuGet.config
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorHosted.CSharp.Client", "src\Microsoft.AspNetCore.Blazor.Templates\content\BlazorHosted.CSharp\BlazorHosted.CSharp.Client\BlazorHosted.CSharp.Client.csproj", "{7549444A-9C81-44DE-AD0D-2C55501EAAC7}"

View File

@ -3,6 +3,9 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<OutputType>Exe</OutputType>
<!-- This custom package feed is required only when using nightly builds of Blazor -->
<RestoreSources>$(RestoreSources);https://dotnet.myget.org/f/blazor-dev/api/v3/index.json</RestoreSources>
</PropertyGroup>
<ItemGroup>

View File

@ -2,6 +2,9 @@
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<!-- This custom package feed is required only when using nightly builds of Blazor -->
<RestoreSources>$(RestoreSources);https://dotnet.myget.org/f/blazor-dev/api/v3/index.json</RestoreSources>
</PropertyGroup>
<ItemGroup>

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="blazor-dev" value="https://dotnet.myget.org/F/blazor-dev/api/v3/index.json" />
</packageSources>
</configuration>

View File

@ -4,6 +4,9 @@
<TargetFramework>netstandard2.0</TargetFramework>
<RunCommand>dotnet</RunCommand>
<RunArguments>blazor serve</RunArguments>
<!-- This custom package feed is required only when using nightly builds of Blazor -->
<RestoreSources>$(RestoreSources);https://dotnet.myget.org/f/blazor-dev/api/v3/index.json</RestoreSources>
</PropertyGroup>
<ItemGroup>

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="blazor-dev" value="https://dotnet.myget.org/F/blazor-dev/api/v3/index.json" />
</packageSources>
</configuration>