Skip to content

Commit

Permalink
Couple simple cleanups in singlefile/bundle (#52995)
Browse files Browse the repository at this point in the history
* compress all kinds of files (except DepsJson and RuntimeConfigJson)

* outdated comment
  • Loading branch information
VSadov authored May 20, 2021
1 parent 636f89d commit d81ad04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,12 @@ private bool ShouldCompress(FileType type)

switch (type)
{
case FileType.Symbols:
case FileType.NativeBinary:
case FileType.Assembly:
return true;
case FileType.DepsJson:
case FileType.RuntimeConfigJson:
return false;

default:
return false;
return true;
}
}

Expand Down
3 changes: 1 addition & 2 deletions src/native/corehost/corehost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,7 @@ int exe_start(const int argc, const pal::char_t* argv[])
}
else
{
// The host components will be statically linked with the app-host: https://github.com/dotnet/runtime/issues/32823
// Once this work is completed, an outdated hostfxr can only be found for framework-related apps.
// An outdated hostfxr can only be found for framework-related apps.
trace::error(_X("The required library %s does not support single-file apps."), fxr.fxr_path().c_str());
need_newer_framework_error();
rc = StatusCode::FrameworkMissingFailure;
Expand Down

0 comments on commit d81ad04

Please sign in to comment.