Remove mono dependency 53/174453/2
authorWonyoung Choi <wy80.choi@samsung.com>
Mon, 2 Apr 2018 07:20:10 +0000 (16:20 +0900)
committerWonyoung Choi <wy80.choi@samsung.com>
Mon, 2 Apr 2018 07:34:50 +0000 (16:34 +0900)
Change-Id: I2998a0c7bca1a905b9084ec68f47562238ea0620

NuGet.BuildTasks/ImportBeforeAfter/Microsoft.NuGet.ImportAfter.targets [deleted file]
NuGet.BuildTasks/ImportBeforeAfter/Microsoft.NuGet.ImportBefore.props [deleted file]
NuGet.BuildTasks/Microsoft.NuGet.Build.Tasks.dll [deleted file]
NuGet.BuildTasks/Microsoft.NuGet.props [deleted file]
NuGet.BuildTasks/Microsoft.NuGet.targets [deleted file]
NuGet/LICENSE [deleted file]
NuGet/NuGet.Config [deleted file]
NuGet/NuGet.exe [deleted file]
NuGet/nuget [deleted file]
Tools/dotnet-build.sh
packaging/dotnet-build-tools.spec

diff --git a/NuGet.BuildTasks/ImportBeforeAfter/Microsoft.NuGet.ImportAfter.targets b/NuGet.BuildTasks/ImportBeforeAfter/Microsoft.NuGet.ImportAfter.targets
deleted file mode 100644 (file)
index 72ce25d..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<!--
-***********************************************************************************************
-Microsoft.NuGet.ImportAfter.targets
-
-WARNING:  DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
-          created a backup copy.  Incorrect changes to this file will make it
-          impossible to load or build your projects from the command-line or the IDE.
-
-Copyright (c) .NET Foundation. All rights reserved. 
-***********************************************************************************************
--->
-<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <PropertyGroup>
-    <NuGetTargets Condition="'$(NuGetTargets)'==''">$(MSBuildExtensionsPath)\Microsoft\NuGet\Microsoft.NuGet.targets</NuGetTargets>
-  </PropertyGroup>
-  <Import Condition="Exists('$(NuGetTargets)')" Project="$(NuGetTargets)" />
-</Project>
diff --git a/NuGet.BuildTasks/ImportBeforeAfter/Microsoft.NuGet.ImportBefore.props b/NuGet.BuildTasks/ImportBeforeAfter/Microsoft.NuGet.ImportBefore.props
deleted file mode 100644 (file)
index a34517c..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<!--
-***********************************************************************************************
-Microsoft.NuGet.ImportBefore.props
-
-WARNING:  DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
-          created a backup copy.  Incorrect changes to this file will make it
-          impossible to load or build your projects from the command-line or the IDE.
-
-Copyright (c) .NET Foundation. All rights reserved. 
-***********************************************************************************************
--->
-<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <PropertyGroup>
-    <NuGetProps Condition="'$(NuGetProps)'==''">$(MSBuildExtensionsPath)\Microsoft\NuGet\Microsoft.NuGet.props</NuGetProps>
-  </PropertyGroup>
-  <Import Condition="Exists('$(NuGetProps)')" Project="$(NuGetProps)" />
-</Project>
diff --git a/NuGet.BuildTasks/Microsoft.NuGet.Build.Tasks.dll b/NuGet.BuildTasks/Microsoft.NuGet.Build.Tasks.dll
deleted file mode 100644 (file)
index dd280df..0000000
Binary files a/NuGet.BuildTasks/Microsoft.NuGet.Build.Tasks.dll and /dev/null differ
diff --git a/NuGet.BuildTasks/Microsoft.NuGet.props b/NuGet.BuildTasks/Microsoft.NuGet.props
deleted file mode 100644 (file)
index a3b4823..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-<!--
-***********************************************************************************************
-Microsoft.NuGet.props
-
-WARNING:  DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
-          created a backup copy.  Incorrect changes to this file will make it
-          impossible to load or build your projects from the command-line or the IDE.
-
-Copyright (c) .NET Foundation. All rights reserved. 
-***********************************************************************************************
--->
-<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <Import Project="$(MSBuildProjectDirectory)\$(MSBuildProjectName).nuget.props" Condition="Exists('$(MSBuildProjectDirectory)\$(MSBuildProjectName).nuget.props') AND '$(IncludeNuGetImports)' != 'false'" />
-</Project>
diff --git a/NuGet.BuildTasks/Microsoft.NuGet.targets b/NuGet.BuildTasks/Microsoft.NuGet.targets
deleted file mode 100644 (file)
index 42dbc16..0000000
+++ /dev/null
@@ -1,271 +0,0 @@
-<!--
-***********************************************************************************************
-Microsoft.NuGet.targets
-
-WARNING:  DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
-          created a backup copy.  Incorrect changes to this file will make it
-          impossible to load or build your projects from the command-line or the IDE.
-
-Copyright (c) .NET Foundation. All rights reserved. 
-***********************************************************************************************
--->
-<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <UsingTask TaskName="Microsoft.NuGet.Build.Tasks.ResolveNuGetPackageAssets" AssemblyFile="Microsoft.NuGet.Build.Tasks.dll" />
-
-  <PropertyGroup Condition="'$(ProjectLockFile)' == ''">
-    <_ProjectSpecificProjectJsonFile>$(MSBuildProjectName).project.json</_ProjectSpecificProjectJsonFile>
-    <ProjectLockFile Condition="Exists('$(_ProjectSpecificProjectJsonFile)')">$(MSBuildProjectName).project.lock.json</ProjectLockFile>
-    <ProjectLockFile Condition="!Exists('$(_ProjectSpecificProjectJsonFile)')">project.lock.json</ProjectLockFile>
-  </PropertyGroup>
-
-  <PropertyGroup>
-    <ResolveNuGetPackages Condition="'$(ResolveNuGetPackages)' == '' and '$(MSBuildProjectExtension)' != '.xproj'">true</ResolveNuGetPackages>
-
-    <BaseNuGetRuntimeIdentifier Condition="'$(BaseNuGetRuntimeIdentifier)' == '' and '$(TargetPlatformIdentifier)' == 'UAP'">win10</BaseNuGetRuntimeIdentifier>
-    <BaseNuGetRuntimeIdentifier Condition="'$(BaseNuGetRuntimeIdentifier)' == ''">win</BaseNuGetRuntimeIdentifier>
-
-    <UseTargetPlatformAsNuGetTargetMoniker Condition="'$(UseTargetPlatformAsNuGetTargetMoniker)' == '' AND '$(TargetFrameworkMoniker)' == '.NETCore,Version=v5.0'">true</UseTargetPlatformAsNuGetTargetMoniker>
-    <NuGetTargetMoniker Condition="'$(NuGetTargetMoniker)' == '' AND '$(UseTargetPlatformAsNuGetTargetMoniker)' == 'true'">$(TargetPlatformIdentifier),Version=v$([System.Version]::Parse('$(TargetPlatformMinVersion)').ToString(3))</NuGetTargetMoniker>
-    <NuGetTargetMoniker Condition="'$(NuGetTargetMoniker)' == '' AND '$(UseTargetPlatformAsNuGetTargetMoniker)' != 'true'">$(TargetFrameworkMoniker)</NuGetTargetMoniker>
-
-    <CopyNuGetImplementations Condition="'$(CopyNuGetImplementations)' == '' and (('$(OutputType)' != 'library' and ('$(OutputType)' != 'winmdobj' or '$(AppxPackage)' == 'true')) or '$(TargetFrameworkIdentifier)' == '.NETFramework')">true</CopyNuGetImplementations>
-    <IncludeFrameworkReferencesFromNuGet Condition="'$(IncludeFrameworkReferencesFromNuGet)' == ''">true</IncludeFrameworkReferencesFromNuGet>
-
-    <_NuGetRuntimeIdentifierPlatformTargetSuffix Condition="'$(PlatformTarget)' != '' and '$(PlatformTarget)' != 'AnyCPU'">-$(PlatformTarget.ToLower())</_NuGetRuntimeIdentifierPlatformTargetSuffix>
-    <_NuGetRuntimeIdentifierWithoutAot>$(BaseNuGetRuntimeIdentifier)$(_NuGetRuntimeIdentifierPlatformTargetSuffix)</_NuGetRuntimeIdentifierWithoutAot>
-  </PropertyGroup>
-
-  <!-- If a NuGetRuntimeIdentifier wasn't already specified, let's go generate it -->
-  <PropertyGroup Condition="'$(NuGetRuntimeIdentifier)' == '' and '$(CopyNuGetImplementations)' == 'true'">
-    <NuGetRuntimeIdentifier>$(_NuGetRuntimeIdentifierWithoutAot)</NuGetRuntimeIdentifier>
-    <NuGetRuntimeIdentifier Condition="'$(UseDotNetNativeToolchain)' == 'true'">$(_NuGetRuntimeIdentifierWithoutAot)-aot</NuGetRuntimeIdentifier>
-  </PropertyGroup>
-
-  <ItemGroup>
-    <!-- If we are resolving from project.lock.json, we need to consider any edit to it as something that forces a rebuild -->
-    <CustomAdditionalCompileInputs Include="$(ProjectLockFile)" Condition="'$(ResolveNuGetPackages)' == 'true' and Exists('$(ProjectLockFile)')" />
-  </ItemGroup>
-
-  <PropertyGroup Condition="'$(TargetPlatformIdentifier)' == 'UAP'">
-    <_NuGetTargetFallbackMoniker>UAP,Version=v10.0</_NuGetTargetFallbackMoniker>
-    <ImplicitlyExpandTargetFramework>false</ImplicitlyExpandTargetFramework>
-    <EnableAppLocalFXWorkaround>false</EnableAppLocalFXWorkaround>
-    <UseNetNativeCustomFramework>true</UseNetNativeCustomFramework>
-  </PropertyGroup>
-
-  <!--
-    ============================================================
-                                        GetProjectsReferencingProjectJsonFiles
-    ============================================================
-  -->
-  <Target Name="GetProjectsReferencingProjectJson" DependsOnTargets="_SplitProjectReferencesByFileExistence" Returns="@(_ProjectReferencingProjectJsonFile)">
-    <ItemGroup Condition="'$(ResolveNuGetPackages)' == 'true'">
-      <_ProjectReferencingProjectJsonFile Include="$(MSBuildProjectFullPath)">
-        <ProjectReferences>@(ProjectReference)</ProjectReferences>
-        <ProjectJson>$(MSBuildProjectDirectory)\project.json</ProjectJson>
-      </_ProjectReferencingProjectJsonFile>
-    </ItemGroup>
-
-    <MSBuild
-      Projects="@(_MSBuildProjectReferenceExistent)"
-      Targets="GetProjectsReferencingProjectJson"
-      BuildInParallel="$(BuildInParallel)"
-      Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration); %(_MSBuildProjectReferenceExistent.SetPlatform)"
-      RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)">
-
-      <Output TaskParameter="TargetOutputs" ItemName="_ProjectReferencingProjectJsonFile" />
-    </MSBuild>
-  </Target>
-
-  <ItemGroup>
-    <NuGetPreprocessorValue Include="rootnamespace">
-      <Value>$(RootNamespace)</Value>
-    </NuGetPreprocessorValue>
-    <NuGetPreprocessorValue Include="assemblyname">
-      <Value>$(AssemblyName)</Value>
-    </NuGetPreprocessorValue>
-    <NuGetPreprocessorValue Include="fullpath">
-      <Value>$(MSBuildProjectDirectory)</Value>
-    </NuGetPreprocessorValue>
-    <NuGetPreprocessorValue Include="outputfilename">
-      <Value>$(TargetFileName)</Value>
-    </NuGetPreprocessorValue>
-    <NuGetPreprocessorValue Include="filename">
-      <Value>$(MSBuildProjectFile)</Value>
-    </NuGetPreprocessorValue>
-  </ItemGroup>
-
-  <!--
-    ============================================================
-                                        ResolveNuGetPackageAssets
-
-    Resolve assets from consumed NuGet packages listed in the project.lock.json
-
-        [OUT]
-        @(Analyzer) - Paths to build-time diagnostic analyzers
-        @(Reference) - Paths to build-time NuGet dependencies
-        @(ReferenceCopyLocalPaths) - Paths to run-time dependencies to copy
-    ============================================================
-  -->
-  <PropertyGroup>
-    <ResolveAssemblyReferencesDependsOn>$(ResolveAssemblyReferencesDependsOn);ResolveNuGetPackageAssets</ResolveAssemblyReferencesDependsOn>
-    <PrepareResourcesDependsOn>ResolveNuGetPackageAssets;$(PrepareResourcesDependsOn)</PrepareResourcesDependsOn>
-  </PropertyGroup>
-
-  <PropertyGroup>
-    <ResolveNuGetPackageAssetsDependsOn>ResolveProjectReferences</ResolveNuGetPackageAssetsDependsOn>
-    <ResolveNuGetPackageAssetsDependsOn Condition="'$(ImplicitlyExpandTargetFramework)' == 'true'">$(ResolveNuGetPackageAssetsDependsOn);ImplicitlyExpandTargetFramework</ResolveNuGetPackageAssetsDependsOn>
-  </PropertyGroup>
-
-  <Target Name="ResolveNuGetPackageAssets" DependsOnTargets="$(ResolveNuGetPackageAssetsDependsOn)" Condition="'$(ResolveNuGetPackages)' == 'true' and exists('$(ProjectLockFile)')">
-    <!-- We need to figure out the output path of any dependent xproj projects -->
-    <MSBuild
-      Projects="@(_MSBuildProjectReferenceExistent)"
-      Targets="GetTargetDir"
-      BuildInParallel="$(BuildInParallel)"
-      Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration); %(_MSBuildProjectReferenceExistent.SetPlatform)"
-      RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)"
-      Condition="'%(_MSBuildProjectReferenceExistent.Extension)' == '.xproj'">
-
-      <Output TaskParameter="TargetOutputs" ItemName="_XProjTargetDirs" />
-    </MSBuild>
-
-    <!-- The items in _XProjTargetDirs have the target directories as the main itemspecs and the originating project as metadata; reverse them -->
-    <ItemGroup>
-      <ProjectReferenceCreatingPackage Include="%(_XProjTargetDirs.OriginalItemSpec)">
-        <OutputBasePath>%(_XProjTargetDirs.Identity)</OutputBasePath>
-      </ProjectReferenceCreatingPackage>
-    </ItemGroup>
-
-    <ResolveNuGetPackageAssets AllowFallbackOnTargetSelection="$(DesignTimeBuild)"
-                               ContinueOnError="$(ContinueOnError)"
-                               IncludeFrameworkReferences="$(IncludeFrameworkReferencesFromNuGet)"
-                               NuGetPackagesDirectory="$(NuGetPackagesDirectory)"
-                               RuntimeIdentifier="$(NuGetRuntimeIdentifier)"
-                               ProjectLanguage="$(Language)"
-                               ProjectLockFile="$(ProjectLockFile)"
-                               ProjectReferencesCreatingPackages="@(ProjectReferenceCreatingPackage)"
-                               ContentPreprocessorValues="@(NuGetPreprocessorValue)"
-                               ContentPreprocessorOutputDirectory="$(IntermediateOutputPath)\NuGet"
-                               TargetMonikers="$(NuGetTargetMoniker);$(_NuGetTargetFallbackMoniker)">
-
-      <Output TaskParameter="ResolvedAnalyzers" ItemName="Analyzer" />
-      <Output TaskParameter="ResolvedCopyLocalItems" ItemName="ReferenceCopyLocalPaths" />
-      <Output TaskParameter="ResolvedReferences" ItemName="_ReferencesFromNuGetPackages" />
-      <Output TaskParameter="ReferencedPackages" ItemName="ReferencedNuGetPackages" />
-      <Output TaskParameter="ContentItems" ItemName="_NuGetContentItems" />
-      <Output TaskParameter="FileWrites" ItemName="FileWrites" />
-    </ResolveNuGetPackageAssets>
-
-    <ItemGroup>
-      <!-- Remove exact references, such as if a package had a framework reference to 'System' that we already have -->
-      <Reference Remove="@(_ReferencesFromNuGetPackages)" />
-
-      <!-- Remove simple name references that are already implicitly added -->
-      <_ReferencesFromNuGetPackages Remove="%(ReferencePath.FileName)" Condition="'%(ReferencePath.ResolvedFrom)' == 'ImplicitlyExpandTargetFramework'" />
-
-      <!-- Include NuGet references in the proper groups. Project-to-project references must go in the
-           _ResolvedProjectReferencePaths group which matches the behavior of the ResolveProjectReferences
-           target. This ensures that even if the assembly is missing on disk, it still makes it to the compiler. -->
-      <Reference Include="@(_ReferencesFromNuGetPackages)" Condition="'%(_ReferencesFromNuGetPackages.NuGetSourceType)' != 'Project'" />
-      <_ResolvedProjectReferencePaths Include="@(_ReferencesFromNuGetPackages)" Condition="'%(_ReferencesFromNuGetPackages.NuGetSourceType)' == 'Project'" />
-
-      <!-- Remove simple name references if we're directly providing a reference assembly to the compiler. For example,
-           consider a project with an Reference Include="System", and some NuGet package is providing System.dll -->
-      <Reference Remove="%(_ReferencesFromNuGetPackages.FileName)" Condition="'%(_ReferencesFromNuGetPackages.NuGetIsFrameworkReference)' == 'false'"/>
-    </ItemGroup>
-
-    <PropertyGroup Condition=" '$(AutoUnifyAssemblyReferences)' == 'true' ">
-      <!-- Normally Design Time Assembly Resolution (DTAR) won't consider these references.
-           Put DTAR in a mode where it will prefer the output of RAR and unify. -->
-      <DTARUseReferencesFromProject>true</DTARUseReferencesFromProject>
-    </PropertyGroup>
-
-    <!-- The items in _NuGetContentItems need to go into the appropriately-named item group, but the names depend upon the items
-         themselves. Split it apart. -->
-    <CreateItem Include="@(_NuGetContentItems)" Condition="'@(_NuGetContentItems)' != ''">
-      <Output TaskParameter="Include" ItemName="%(_NuGetContentItems.NuGetItemType)" />
-    </CreateItem>
-  </Target>
-
-  <Target Name="RuntimeImplementationProjectOutputGroup" Returns="@(RuntimeImplementationProjectOutputGroupOutput)" Condition="'$(ResolveNuGetPackages)' == 'true' and exists('$(ProjectLockFile)')">
-    <!-- This output group must contain the implementation assemblies for the host (i.e. design time) environment, not the
-         target environment. Thus, we explicitly pass the RuntimeIdentifier that doesn't have the -aot suffix -->
-    <ResolveNuGetPackageAssets AllowFallbackOnTargetSelection="$(DesignTimeBuild)"
-                               NuGetPackagesDirectory="$(NuGetPackagesDirectory)"
-                               RuntimeIdentifier="$(_NuGetRuntimeIdentifierWithoutAot)"
-                               ProjectLanguage="$(Language)"
-                               ProjectLockFile="$(ProjectLockFile)"
-                               TargetMonikers="$(NuGetTargetMoniker);$(_NuGetTargetFallbackMoniker)">
-
-      <Output TaskParameter="ResolvedCopyLocalItems" ItemName="NonAheadOfTimeRuntimeImplementations" />
-    </ResolveNuGetPackageAssets>
-
-    <ItemGroup>
-      <RuntimeImplementationProjectOutputGroupOutput Include="%(NonAheadOfTimeRuntimeImplementations.Identity)">
-        <FinalOutputPath>%(NonAheadOfTimeRuntimeImplementations.FullPath)</FinalOutputPath>
-        <TargetPath>%(NonAheadOfTimeRuntimeImplementations.FullPath)</TargetPath>
-      </RuntimeImplementationProjectOutputGroupOutput>
-    </ItemGroup>
-  </Target>
-
-  <!--
-    ============================================================
-            Framework injection into mixed-target applications
-    ============================================================
-  -->
-  <PropertyGroup>
-    <NuGetTargetFrameworkMonikerToInject Condition="'$(NuGetTargetFrameworkMonikerToInject)' == ''">.NETCore,Version=v5.0</NuGetTargetFrameworkMonikerToInject>
-    <NuGetTargetMonikerToInject Condition="'$(NuGetTargetMonikerToInject)' == ''">.NETCore,Version=v5.0</NuGetTargetMonikerToInject>
-    <_ComputeNetCoreFrameworkInjectionParametersBeforeTargets Condition="'$(AppxPackage)' == 'true' and '$(TargetPlatformIdentifier)' == 'UAP'">BeforeGenerateProjectPriFile</_ComputeNetCoreFrameworkInjectionParametersBeforeTargets>
-  </PropertyGroup>
-
-  <Target Name="ComputeNetCoreFrameworkInjectionParameters" BeforeTargets="$(_ComputeNetCoreFrameworkInjectionParametersBeforeTargets)" DependsOnTargets="_AddUnionWinmd" Condition="'$(_ComputeNetCoreFrameworkInjectionParametersBeforeTargets)' != ''">
-    <PropertyGroup>
-      <_PackagingOutputsIncludesFramework Condition="'%(PackagingOutputs.FileName)%(PackagingOutputs.Extension)' == 'System.Runtime.dll'">true</_PackagingOutputsIncludesFramework>
-      <_AppContainsManagedCodeForInjection Condition="'%(PackagingOutputs.Identity)' == '$(_TargetPlatformSdkDir)UnionMetadata\Windows.winmd'">true</_AppContainsManagedCodeForInjection>
-    </PropertyGroup>
-
-    <PropertyGroup>
-      <_NetCoreFrameworkInjectionNeeded Condition="'$(_PackagingOutputsIncludesFramework)' != 'true' and '$(_AppContainsManagedCodeForInjection)' == 'true'">true</_NetCoreFrameworkInjectionNeeded>
-    </PropertyGroup>
-  </Target>
-
-  <Target Name="InjectNetCoreFrameworkBlockIfLockFileExists" AfterTargets="ComputeNetCoreFrameworkInjectionParameters" Condition="'$(_NetCoreFrameworkInjectionNeeded)' == 'true' and '$(ResolveNuGetPackages)' == 'true' and Exists('$(ProjectLockFile)')">
-    <Error Text="One of your dependencies requires the .NET Framework, but the .NET Framework could not be found in the NuGet packages installed in this project.  Please install the appropriate .NET Framework packages required by your dependency." />
-  </Target>
-
-  <Target Name="InjectNetCoreFramework" AfterTargets="ComputeNetCoreFrameworkInjectionParameters" Condition="'$(_NetCoreFrameworkInjectionNeeded)' == 'true' and ('$(ResolveNuGetPackages)' != 'true' or !Exists('$(ProjectLockFile)'))">
-    <GetReferenceAssemblyPaths TargetFrameworkMoniker="$(NuGetTargetFrameworkMonikerToInject)" Condition="'$(FrameworkInjectionLockFile)' == ''">
-      <Output TaskParameter="ReferenceAssemblyPaths" ItemName="_NuGetInjectionSourceDirectories" />
-    </GetReferenceAssemblyPaths>
-
-    <PropertyGroup>
-      <FrameworkInjectionLockFile Condition="'$(FrameworkInjectionLockFile)' == ''">@(_NuGetInjectionSourceDirectories->'%(Identity)\project.lock.json')</FrameworkInjectionLockFile>
-      <FrameworkInjectionPackagesDirectory Condition="'$(FrameworkInjectionPackagesDirectory)' == ''">$([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\NuGet\Repository', 'NETCoreSDK', null, RegistryView.Registry32, RegistryView.Default))</FrameworkInjectionPackagesDirectory>
-    </PropertyGroup>
-
-    <ResolveNuGetPackageAssets Condition="Exists('$(FrameworkInjectionLockFile)')"
-                               NuGetPackagesDirectory="$(FrameworkInjectionPackagesDirectory)"
-                               RuntimeIdentifier="$(NuGetRuntimeIdentifier)"
-                               TargetMonikers="$(NuGetTargetMonikerToInject)"
-                               ProjectLockFile="$(FrameworkInjectionLockFile)">
-
-      <Output TaskParameter="ResolvedCopyLocalItems" ItemName="_InjectNetCoreFrameworkPayload" />
-    </ResolveNuGetPackageAssets>
-
-    <PropertyGroup>
-      <_CoreRuntimePackageId Condition="'%(_InjectNetCoreFrameworkPayload.FileName)%(_InjectNetCoreFrameworkPayload.Extension)' == 'mscorlib.dll' OR '%(_InjectNetCoreFrameworkPayload.FileName)%(_InjectNetCoreFrameworkPayload.Extension)' == 'mscorlib.ni.dll'">%(_InjectNetCoreFrameworkPayload.NuGetPackageId)</_CoreRuntimePackageId>
-    </PropertyGroup>
-
-    <ItemGroup>
-      <PackagingOutputs Include="@(_InjectNetCoreFrameworkPayload)" Condition="'%(_InjectNetCoreFrameworkPayload.NuGetPackageId)' != '$(_CoreRuntimePackageId)' or '$(UseDotNetNativeToolchain)' == 'true'">
-        <TargetPath>%(Filename)%(Extension)</TargetPath>
-        <ProjectName>$(ProjectName)</ProjectName>
-        <OutputGroup>CopyLocalFilesOutputGroup</OutputGroup>
-      </PackagingOutputs>
-    </ItemGroup>
-  </Target>
-
-  <Import Project="$(MSBuildProjectDirectory)\$(MSBuildProjectName).nuget.targets" Condition="Exists('$(MSBuildProjectDirectory)\$(MSBuildProjectName).nuget.targets') AND '$(IncludeNuGetImports)' != 'false'" />
-</Project>
diff --git a/NuGet/LICENSE b/NuGet/LICENSE
deleted file mode 100644 (file)
index 6bfd8f9..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-NuGet.BuildTasks
-
-Copyright (c) .NET Foundation. All rights reserved.
-
-Licensed under the Apache License, Version 2.0 (the "License"); you may not use
-these files except in compliance with the License. You may obtain a copy of the
-License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software distributed
-under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
-CONDITIONS OF ANY KIND, either express or implied. See the License for the
-specific language governing permissions and limitations under the License.
diff --git a/NuGet/NuGet.Config b/NuGet/NuGet.Config
deleted file mode 100644 (file)
index 6ed4e83..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<configuration>
-  <packageSources>
-    <add key="local" value="/nuget" />
-  </packageSources>
-</configuration>
-
diff --git a/NuGet/NuGet.exe b/NuGet/NuGet.exe
deleted file mode 100644 (file)
index 6bb79fe..0000000
Binary files a/NuGet/NuGet.exe and /dev/null differ
diff --git a/NuGet/nuget b/NuGet/nuget
deleted file mode 100755 (executable)
index 0d69009..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/bash
-
-NUGET_DIR=/usr/share/NuGet
-
-CMD=$1
-
-CONFIGFILE_OPTION="-configfile $NUGET_DIR/NuGet.Config"
-
-case $CMD in
-    pack|init|add|locals|mirror|help)
-      CONFIGFILE_OPTION=""
-esac
-
-mono $NUGET_DIR/NuGet.exe $@ $CONFIGFILE_OPTION
index c053b67..9ffaef8 100755 (executable)
@@ -21,17 +21,6 @@ exit_on_error() {
   fi
 }
 
-run_nuget() {
-  $RETRY_CMD nuget $@
-  exit_on_error $?
-}
-
-run_xbuild() {
-  echo "+ xbuild $@"
-  xbuild $@
-  exit_on_error $?
-}
-
 run_dotnet() {
   echo "+ dotnet $@"
   $RETRY_CMD $TIMEOUT_CMD 600 dotnet $@
@@ -53,72 +42,24 @@ update_version_to_asterisk() {
   done
 }
 
-build_project() {
-  local CSPROJ=$1; shift
-
-  local PROJNAME=${CSPROJ%.*}
-  local PROJECT_JSON=$PROJNAME.project.json
-  if [ -f $PROJECT_JSON ]; then
-    run_nuget restore $PROJECT_JSON
-  fi
-  run_xbuild $CSPROJ /p:Configuration=$CONFIGURATION $@
-}
-
 cmd_restore() {
-  if $USE_DOTNET_CLI; then
-    ## update_version_to_asterisk # update PackageReference version to * in .csproj
-    local OPTS=""
-    [ -n "$SOURCE" ] && OPTS="$OPTS -s $SOURCE"
-    run_dotnet restore $PROJECT $OPTS $@
-  else
-    if [[ $PROJECT_TYPE == "dir" ]]; then
-      local PROJFILES=$(find $PROJECT -name "*project.json")
-      for p in $PROJFILES; do
-        run_nuget restore $p $@
-      done
-    else
-      run_nuget restore $PROJECT $@
-    fi
-  fi
+  local OPTS=""
+  [ -n "$SOURCE" ] && OPTS="$OPTS -s $SOURCE"
+  run_dotnet restore $PROJECT $OPTS $@
 }
 
 cmd_build() {
-  if $USE_DOTNET_CLI; then
-    cmd_restore # restore first
-    local OPTS=""
-    [ -n "$CONFIGURATION" ] && OPTS="$OPTS -c $CONFIGURATION"
-    run_dotnet build --no-restore $PROJECT $OPTS $@ /p:UsingRPMMacro=true
-  else
-    if [[ $PROJECT_TYPE == "dir" ]]; then
-      local PROJFILES=$(find $PROJECT -name "*.csproj")
-      for p in $PROJFILES; do
-        build_project $p $@
-      done
-    elif [[ $PROJECT_TYPE == "sln" ]]; then
-      run_xbuild $PROJECT /p:Configuration=$CONFIGURATION $@
-    elif [[ $PROJECT_TYPE == "csproj" ]]; then
-      build_project $PROJECT $@
-    fi
-  fi
+  cmd_restore # restore first
+  local OPTS=""
+  [ -n "$CONFIGURATION" ] && OPTS="$OPTS -c $CONFIGURATION"
+  run_dotnet build --no-restore $PROJECT $OPTS $@ /p:UsingRPMMacro=true
 }
 
 cmd_pack() {
   local OPTS=""
-  if $USE_DOTNET_CLI; then
-    [ -n "$CONFIGURATION" ] && OPTS="$OPTS -c $CONFIGURATION"
-    [ -n "$VERSION" ] && OPTS="$OPTS /p:Version=$VERSION"
-    run_dotnet pack --no-restore --no-build $PROJECT $OPTS $@ /p:UsingRPMMacro=true
-  else
-    local NUSPEC=($PROJECT)
-    if [ -d $PROJECT ]; then
-      NUSPEC=($(find $PROJECT -name "*.nuspec"))
-    fi
-    [ -n "$CONFIGURATION" ] && OPTS="$OPTS -Properties Configuration=$CONFIGURATION"
-    [ -n "$VERSION" ] && OPTS="$OPTS -Version $VERSION"
-    for x in ${NUSPEC[@]}; do
-      run_nuget pack $x $OPTS $@
-    done
-  fi
+  [ -n "$CONFIGURATION" ] && OPTS="$OPTS -c $CONFIGURATION"
+  [ -n "$VERSION" ] && OPTS="$OPTS /p:Version=$VERSION"
+  run_dotnet pack --no-restore --no-build $PROJECT $OPTS $@ /p:UsingRPMMacro=true
 }
 
 cmd_install() {
@@ -204,13 +145,14 @@ elif [ -d $PROJECT ]; then
   fi
 fi
 
+if [ $USE_DOTNET_CLI == false ]; then
+  echo "Not supported project type."
+  exit 1
+fi
+
 export DOTNET_CLI_TELEMETRY_OPTOUT=1
 export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
 
-# To build PCL projects ReferenceAssemblyRoot should be set.
-# dotnet-cli will find reference assemblies for PCL in this path.
-export ReferenceAssemblyRoot=/usr/lib/mono/xbuild-frameworks
-
 # Dump
 echo "----------------------------------------------"
 echo "CMD=$CMD"
index 56a3981..d1295b1 100644 (file)
@@ -3,7 +3,7 @@
 
 Name:       dotnet-build-tools
 Summary:    Tools for building C# API projects
-Version:    1.3.5
+Version:    2.0.0
 Release:    1
 Group:      Development/Libraries
 License:    MIT and Apache-2.0
@@ -16,11 +16,6 @@ AutoReqProv: no
 BuildRequires: patchelf
 
 Requires: corefx-managed-ref
-Requires: referenceassemblies-pcl
-
-Requires: mono-compat
-Requires: mono-devel
-Requires: mono-compiler
 
 Requires: xmlstarlet
 
@@ -28,8 +23,6 @@ Requires: xmlstarlet
 Build target files (.Targets) and Tools (including NuGet.exe) for building
 C# Deivce API with xbuild in GBS environment.
 
-%define XBUILD_PATH /usr/lib/mono/xbuild
-%define NUGET_PATH %{_datadir}/NuGet
 %define TOOLS_PATH %{_datadir}/dotnet-build-tools
 %define CLI_PATH %{TOOLS_PATH}/cli
 
@@ -67,26 +60,7 @@ ln -s %{CLI_PATH}/dotnet %{buildroot}%{_bindir}/dotnet
 # Tizen.GBS.BuildTasks
 install -p -m 644 Tizen.GBS.BuildTasks/Tizen.GBS.ImportAfter.targets %{buildroot}%{CLI_PATH}/sdk/*/15.0/Microsoft.Common.targets/ImportAfter
 
-# NuGet
-mkdir -p %{buildroot}%{NUGET_PATH}
-install -p -m 755 NuGet/* %{buildroot}%{NUGET_PATH}
-ln -s %{NUGET_PATH}/nuget %{buildroot}%{_bindir}/nuget
-ln -s %{NUGET_PATH}/NuGet.exe %{buildroot}%{_bindir}/nuget.exe
-
-# NuGet.BuildTasks
-mkdir -p %{buildroot}%{XBUILD_PATH}/Microsoft/NuGet
-install -p -m 644 NuGet.BuildTasks/Microsoft.NuGet.targets %{buildroot}%{XBUILD_PATH}/Microsoft/NuGet
-install -p -m 644 NuGet.BuildTasks/Microsoft.NuGet.Build.Tasks.dll %{buildroot}%{XBUILD_PATH}/Microsoft/NuGet
-install -p -m 644 NuGet.BuildTasks/Microsoft.NuGet.props %{buildroot}%{XBUILD_PATH}/Microsoft/NuGet
-mkdir -p %{buildroot}%{XBUILD_PATH}/14.0/Microsoft.Common.targets/ImportBefore
-install -p -m 644 NuGet.BuildTasks/ImportBeforeAfter/Microsoft.NuGet.ImportBefore.props %{buildroot}%{XBUILD_PATH}/14.0/Microsoft.Common.targets/ImportBefore
-mkdir -p %{buildroot}%{XBUILD_PATH}/14.0/Microsoft.Common.targets/ImportAfter
-install -p -m 644 NuGet.BuildTasks/ImportBeforeAfter/Microsoft.NuGet.ImportAfter.targets %{buildroot}%{XBUILD_PATH}/14.0/Microsoft.Common.targets/ImportAfter
-
 %files
-%license NuGet/LICENSE
 %config(noreplace) %{_sysconfdir}/rpm/macros.dotnet-build-tools
 %{_bindir}/*
-%{NUGET_PATH}/*
-%{XBUILD_PATH}/*
 %{TOOLS_PATH}/*