Browse Source

Update Internal.AspNetCore.Sdk

Ryan Brandenburg 8 năm trước cách đây
mục cha
commit
8d7e9b737a
2 tập tin đã thay đổi với 3 bổ sung13 xóa
  1. 1 1
      build/dependencies.props
  2. 2 12
      scripts/UpdateBuildTools.ps1

+ 1 - 1
build/dependencies.props

@@ -208,7 +208,7 @@
   <!-- ASP.NET Core Tools feed -->
   <PropertyGroup>
     <AspNetCoreToolsFeed>https://dotnet.myget.org/F/aspnetcore-tools/api/v3/index.json</AspNetCoreToolsFeed>
-    <InternalAspNetCoreSdkPackageVersion>2.1.0-preview1-15551</InternalAspNetCoreSdkPackageVersion>
+    <InternalAspNetCoreSdkPackageVersion>$(KoreBuildVersion)</InternalAspNetCoreSdkPackageVersion>
   </PropertyGroup>
 
   <ItemGroup>

+ 2 - 12
scripts/UpdateBuildTools.ps1

@@ -64,16 +64,6 @@ try {
         exit 0
     }
 
-    $deps = Get-Content "$RepoRoot/build/dependencies.props" `
-    | % {
-        if ($_ -like '*<InternalAspNetCoreSdkPackageVersion>*') {
-            "    <InternalAspNetCoreSdkPackageVersion>$newVersion</InternalAspNetCoreSdkPackageVersion>"
-        } else {
-            $_
-        }
-    }
-    $deps | Set-Content -Encoding UTF8 "$RepoRoot/build/dependencies.props"
-
     Invoke-Block { git add "$RepoRoot/korebuild-lock.txt" }
     Invoke-Block { git add "$RepoRoot/build/dependencies.props" }
 
@@ -85,11 +75,11 @@ try {
 
         $gitConfigArgs = @()
         if ($GitAuthorName) {
-            $gitConfigArgs += '-c',"user.name=$GitAuthorName"
+            $gitConfigArgs += '-c', "user.name=$GitAuthorName"
         }
 
         if ($GitAuthorEmail) {
-            $gitConfigArgs += '-c',"user.email=$GitAuthorEmail"
+            $gitConfigArgs += '-c', "user.email=$GitAuthorEmail"
         }
 
         Invoke-Block { git @gitConfigArgs commit -m $message @GitCommitArgs }