Skip to content

Commit

Permalink
Add latest PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
erdembayar committed Feb 18, 2022
1 parent 7ff7cde commit b4281bd
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ internal sealed class AssemblyMetadataExtractor

private static T CreateInstance<T>(AppDomain domain)
{
string assemblyLocation = Assembly.GetExecutingAssembly().Location;

try
{
return (T)domain.CreateInstanceFromAndUnwrap(Assembly.GetExecutingAssembly().Location, typeof(T).FullName);
return (T)domain.CreateInstanceFromAndUnwrap(assemblyLocation, typeof(T).FullName);
}
catch (FileLoadException flex) when (flex.FileName.EndsWith(".exe", StringComparison.OrdinalIgnoreCase))
catch (FileLoadException flex) when (UriUtility.GetLocalPath(flex.FileName).Equals(assemblyLocation, StringComparison.Ordinal))
{
// Reflection loading error for sandboxed assembly
var exceptionMessage = string.Format(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public PackageBuilder CreateBuilder(string basePath, NuGetVersion version, strin
}
catch (PackagingException packex) when (packex.AsLogMessage().Code.Equals(NuGetLogCode.NU5133))
{
Logger.Log(PackagingLogMessage.CreateError(packex.Message, NuGetLogCode.NU5133));
ExceptionUtilities.LogException(packex, Logger);
return null;
}
catch (Exception ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Globalization;
using NuGet.Commands;
using NuGet.VisualStudio;
using NuGet.VisualStudio.Etw;
using NuGet.Commands;

namespace NuGet.SolutionRestoreManager
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ NuGet.Common.IPackLogMessage.Framework.get -> NuGet.Frameworks.NuGetFramework
NuGet.Common.IPackLogMessage.Framework.set -> void
NuGet.Common.IPackLogMessage.LibraryId.get -> string
NuGet.Common.IPackLogMessage.LibraryId.set -> void
NuGet.Common.NuGetLogCode.NU5042 = 5042 -> NuGet.Common.NuGetLogCode
NuGet.Common.NuGetLogCode.NU5133 = 5133 -> NuGet.Common.NuGetLogCode
NuGet.Common.PackagingLogMessage.Framework.get -> NuGet.Frameworks.NuGetFramework
NuGet.Common.PackagingLogMessage.Framework.set -> void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ NuGet.Common.IPackLogMessage.Framework.get -> NuGet.Frameworks.NuGetFramework
NuGet.Common.IPackLogMessage.Framework.set -> void
NuGet.Common.IPackLogMessage.LibraryId.get -> string
NuGet.Common.IPackLogMessage.LibraryId.set -> void
NuGet.Common.NuGetLogCode.NU5042 = 5042 -> NuGet.Common.NuGetLogCode
NuGet.Common.NuGetLogCode.NU5133 = 5133 -> NuGet.Common.NuGetLogCode
NuGet.Common.PackagingLogMessage.Framework.get -> NuGet.Frameworks.NuGetFramework
NuGet.Common.PackagingLogMessage.Framework.set -> void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ NuGet.Common.IPackLogMessage.Framework.get -> NuGet.Frameworks.NuGetFramework
NuGet.Common.IPackLogMessage.Framework.set -> void
NuGet.Common.IPackLogMessage.LibraryId.get -> string
NuGet.Common.IPackLogMessage.LibraryId.set -> void
NuGet.Common.NuGetLogCode.NU5042 = 5042 -> NuGet.Common.NuGetLogCode
NuGet.Common.NuGetLogCode.NU5133 = 5133 -> NuGet.Common.NuGetLogCode
NuGet.Common.PackagingLogMessage.Framework.get -> NuGet.Frameworks.NuGetFramework
NuGet.Common.PackagingLogMessage.Framework.set -> void
Expand Down

0 comments on commit b4281bd

Please sign in to comment.