Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'build/tools/templates/HostingStartup/HostingStartup.csproj')
-rw-r--r--build/tools/templates/HostingStartup/HostingStartup.csproj13
1 files changed, 12 insertions, 1 deletions
diff --git a/build/tools/templates/HostingStartup/HostingStartup.csproj b/build/tools/templates/HostingStartup/HostingStartup.csproj
index dbb96336d5..12cdf93eb1 100644
--- a/build/tools/templates/HostingStartup/HostingStartup.csproj
+++ b/build/tools/templates/HostingStartup/HostingStartup.csproj
@@ -1,8 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">
+ <Import Project="$(DotNetRestoreSourcePropsPath)" Condition="'$(DotNetRestoreSourcePropsPath)' != ''"/>
+
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<OutputType>Exe</OutputType>
+ <RestoreSources>$(DotNetRestoreSources)</RestoreSources>
+ <RestoreSources Condition="'$(DotNetBuildOffline)' != 'true' AND '$(AspNetUniverseBuildOffline)' != 'true' ">
+ $(RestoreSources);
+ https://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json;
+ </RestoreSources>
+ <RestoreSources Condition="'$(DotNetBuildOffline)' != 'true'">
+ $(RestoreSources);
+ https://api.nuget.org/v3/index.json;
+ </RestoreSources>
</PropertyGroup>
<ItemGroup>
@@ -15,6 +26,6 @@
<DestinationDepsFile>$(DepsOutputPath)\$(HostingStartupPackageName)\shared\Microsoft.NETCore.App\$(DepsRuntimeFrameworkVersion)\$(HostingStartupPackageName).deps.json</DestinationDepsFile>
</PropertyGroup>
- <Copy SourceFiles="$(ProjectDepsFilePath)" DestinationFiles="$(DestinationDepsFile)" />
+ <Copy SourceFiles="$(PublishDepsFilePath)" DestinationFiles="$(DestinationDepsFile)" />
</Target>
</Project>