Skip to content

Commit 1c767ef

Browse files
author
Tyler Phelan
committed
Revert "Do not dotnet restore unless the app uses dotnet sdk <= 1 [#159412906]"
This reverts commit af8f39f.
1 parent 7625b34 commit 1c767ef

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

src/dotnetcore/finalize/finalize.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,6 @@ func (f *Finalizer) GenerateReleaseYaml() (map[string]map[string]string, error)
186186
}
187187

188188
func (f *Finalizer) DotnetRestore() error {
189-
if !strings.HasPrefix(f.Config.DotnetSdkVersion, "1.") {
190-
return nil
191-
}
192-
193189
f.Log.BeginStep("Restore dotnet dependencies")
194190

195191
paths, err := f.Project.ProjectFilePaths()

src/dotnetcore/supply/cli/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ func main() {
3737
logger.Error("Unable to setup appcache: %s", err)
3838
os.Exit(18)
3939
}
40-
4140
if err = manifest.ApplyOverride(stager.DepsDir()); err != nil {
4241
logger.Error("Unable to apply override.yml files: %s", err)
4342
os.Exit(17)

src/dotnetcore/supply/supply.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ func Run(s *Supplier) error {
7171
s.Log.Error("Unable to install Libunwind: %s", err.Error())
7272
return err
7373
}
74-
7574
if err := s.InstallDotnetSdk(); err != nil {
7675
s.Log.Error("Unable to install Dotnet SDK: %s", err.Error())
7776
return err

0 commit comments

Comments
 (0)