Project fails to build with PS0125 after upgrading to 5.1.7-preview, seemingly unable to find one of its dependent assemblies

avatar's Avatar

avatar

29 Mar, 2018 06:10 AM

This project build fine under 5.1.3-alpha, but failed immediately after upgrading to 5.1.7-preview:

Here's the build output.

Build with surface heuristics started at 01:05:23
CONSOLE: Microsoft (R) Build Engine version 15.6.82.30579 for .NET Framework
CONSOLE: Copyright (C) Microsoft Corporation. All rights reserved.
CONSOLE: Build started 3/29/2018 1:05:23 AM.
0: ------- Project started: GateKeeper.API
0: Encountered conflict between 'Reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Runtime.Serialization.Xml.dll' and 'Reference:C:\Users\avatar\.nuget\packages\system.runtime.serialization.xml\4.3.0\ref\netstandard1.3\System.Runtime.Serialization.Xml.dll'.  Choosing 'Reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Runtime.Serialization.Xml.dll' because AssemblyVersion '4.1.3.0' is greater than '4.1.1.0'.
0: Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
0: Skipping target "CoreGenerateAssemblyInfo" because all output files are up-to-date with respect to the input files.
0: D:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Roslyn\csc.exe /noconfig /unsafe- /checked- /nowarn:1701,1702,1705,1701,1702,2008 /nostdlib+ /errorreport:prompt /warn:4 /define:POSTSHARP;TRACE;DEBUG;JETBRAINS_ANNOTATIONS;DEBUG;NETSTANDARD2_0 /errorendlocation /preferreduilang:en-US /reference:C:\Users\avatar\.nuget\packages\jetbrains.annotations\11.1.0\lib\netstandard1.0\JetBrains.Annotations.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\Microsoft.Win32.Primitives.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\mscorlib.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\netstandard.dll /reference:C:\Users\avatar\.nuget\packages\newtonsoft.json\11.0.1\lib\netstandard2.0\Newtonsoft.Json.dll /reference:C:\Users\avatar\.nuget\packages\postsharp.redist\5.1.7-preview\lib\netstandard2.0\PostSharp.dll /reference:C:\Users\avatar\.nuget\packages\postsharp.patterns.aggregation.redist\5.1.7-preview\lib\netstandard1.3\PostSharp.Patterns.Aggregation.dll /reference:C:\Users\avatar\.nuget\packages\postsharp.patterns.common.redist\5.1.7-preview\lib\netstandard1.3\PostSharp.Patterns.Common.dll /reference:C:\Users\avatar\.nuget\packages\postsharp.patterns.threading.redist\5.1.7-preview\lib\netstandard1.3\PostSharp.Patterns.Threading.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.AppContext.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Collections.Concurrent.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Collections.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Collections.NonGeneric.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Collections.Specialized.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.ComponentModel.Composition.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.ComponentModel.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.ComponentModel.EventBasedAsync.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.ComponentModel.Primitives.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.ComponentModel.TypeConverter.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Console.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Core.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Data.Common.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Data.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Diagnostics.Contracts.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Diagnostics.Debug.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Diagnostics.FileVersionInfo.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Diagnostics.Process.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Diagnostics.StackTrace.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Diagnostics.TextWriterTraceListener.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Diagnostics.Tools.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Diagnostics.TraceSource.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Diagnostics.Tracing.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Drawing.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Drawing.Primitives.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Dynamic.Runtime.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Globalization.Calendars.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Globalization.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Globalization.Extensions.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.IO.Compression.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.IO.Compression.FileSystem.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.IO.Compression.ZipFile.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.IO.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.IO.FileSystem.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.IO.FileSystem.DriveInfo.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.IO.FileSystem.Primitives.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.IO.FileSystem.Watcher.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.IO.IsolatedStorage.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.IO.MemoryMappedFiles.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.IO.Pipes.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.IO.UnmanagedMemoryStream.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Linq.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Linq.Expressions.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Linq.Parallel.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Linq.Queryable.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Net.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Net.Http.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Net.NameResolution.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Net.NetworkInformation.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Net.Ping.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Net.Primitives.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Net.Requests.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Net.Security.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Net.Sockets.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Net.WebHeaderCollection.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Net.WebSockets.Client.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Net.WebSockets.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Numerics.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.ObjectModel.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Reflection.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Reflection.Extensions.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Reflection.Primitives.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Resources.Reader.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Resources.ResourceManager.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Resources.Writer.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Runtime.CompilerServices.VisualC.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Runtime.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Runtime.Extensions.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Runtime.Handles.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Runtime.InteropServices.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Runtime.InteropServices.RuntimeInformation.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Runtime.Numerics.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Runtime.Serialization.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Runtime.Serialization.Formatters.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Runtime.Serialization.Json.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Runtime.Serialization.Primitives.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Runtime.Serialization.Xml.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Security.Claims.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Security.Cryptography.Algorithms.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Security.Cryptography.Csp.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Security.Cryptography.Encoding.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Security.Cryptography.Primitives.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Security.Cryptography.X509Certificates.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Security.Principal.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Security.SecureString.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.ServiceModel.Web.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Text.Encoding.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Text.Encoding.Extensions.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Text.RegularExpressions.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Threading.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Threading.Overlapped.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Threading.Tasks.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Threading.Tasks.Parallel.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Threading.Thread.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Threading.ThreadPool.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Threading.Timer.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Transactions.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.ValueTuple.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Web.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Windows.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Xml.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Xml.Linq.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Xml.ReaderWriter.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Xml.Serialization.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Xml.XDocument.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Xml.XmlDocument.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Xml.XmlSerializer.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Xml.XPath.dll /reference:C:\Users\avatar\.nuget\packages\netstandard.library\2.0.1\build\netstandard2.0\ref\System.Xml.XPath.XDocument.dll /debug+ /debug:full /filealign:512 /keyfile:gatekeeper.snk /optimize- /out:obj\Debug\netstandard2.0\GateKeeper.API.dll /ruleset:"D:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Team Tools\Static Analysis Tools\\Rule Sets\MinimumRecommendedRules.ruleset" /target:library /warnaserror- /utf8output /deterministic+ APIChannel.cs ApiDescriptorAttribute.cs ApiEndpoint.cs ApiSecurityLevel.cs Duid.cs Friends.cs GateKeeperChannelException.cs GateKeeperException.cs GateKeeperIllegalException.cs GateKeeperInternalErrorException.cs GateKeeperSecurityException.cs GateKeeperVersionMismatchException.cs Parameters\LogEntry.cs Parameters\LogLevel.cs "C:\Users\avatar\AppData\Local\Temp\.NETStandard,Version=v2.0.AssemblyAttributes.cs" obj\Debug\netstandard2.0\GateKeeper.API.AssemblyInfo.cs /warnaserror+:NU1605
0: Using shared compilation with compiler from directory: D:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Roslyn
0: Executing "dotnet" C:\ProgramData\PostSharp\5.1.7\bin.Release\postsharp-netstandard20.dll obj\Debug\netstandard2.0\Before-PostSharp\GateKeeper.API.dll C:\Users\avatar\Source\Repos\gk-netcore\GateKeeper.API\obj\Debug\netstandard2.0\PostSharp\postsharp.config /config C:\ProgramData\PostSharp\5.1.7\bin.Release\postsharp-netstandard20.dll.config /NoLogo /InstallVsx /cancel:Local\postsharp-cancel-f0a1d845-53c9-4962-b6c2-1cb939c99356
0: Error C:\Users\avatar\Source\Repos\gk-netcore\GateKeeper.API\GateKeeper.API.csproj (0,0) PS0125: An unexpected exception occurred when executing user code: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. The system cannot find the file specified.
0: Error C:\Users\avatar\Source\Repos\gk-netcore\GateKeeper.API\GateKeeper.API.csproj (0,0) PS0125: at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
0: Error C:\Users\avatar\Source\Repos\gk-netcore\GateKeeper.API\GateKeeper.API.csproj (0,0) PS0125: at System.Reflection.RuntimeMethodInfo.FetchNonReturnParameters()
0: Error C:\Users\avatar\Source\Repos\gk-netcore\GateKeeper.API\GateKeeper.API.csproj (0,0) PS0125: at System.Reflection.RuntimeMethodInfo.GetParameters()
0: Error C:\Users\avatar\Source\Repos\gk-netcore\GateKeeper.API\GateKeeper.API.csproj (0,0) PS0125: at ^XJbqCOExOmCj.^i8LBKh1N(ModuleDeclaration _0, MethodBase _1, BindingOptions _2)
0: Error C:\Users\avatar\Source\Repos\gk-netcore\GateKeeper.API\GateKeeper.API.csproj (0,0) PS0125: at PostSharp.Sdk.CodeModel.ModuleDeclaration.FindMethod(MethodBase reflectionMethod, BindingOptions bindingOptions)
0: Error C:\Users\avatar\Source\Repos\gk-netcore\GateKeeper.API\GateKeeper.API.csproj (0,0) PS0125: at PostSharp.Sdk.CodeModel.ModuleDeclaration.^FXZSEVD9(Object _0, Boolean _1, MetadataDeclaration& _2, TokenType& _3)
0: Error C:\Users\avatar\Source\Repos\gk-netcore\GateKeeper.API\GateKeeper.API.csproj (0,0) PS0125: at ^0pvyajNmgrdW.GetSemanticInfo(MemberInfo _0)
0: Error C:\Users\avatar\Source\Repos\gk-netcore\GateKeeper.API\GateKeeper.API.csproj (0,0) PS0125: at PostSharp.Patterns.Threading.ThreadAwareAttribute.AnalyzeTypeLazy(Type type)
0: Error C:\Users\avatar\Source\Repos\gk-netcore\GateKeeper.API\GateKeeper.API.csproj (0,0) PS0125: at PostSharp.Patterns.Threading.ThreadAwareAttribute.SelectWritableFields(Type type)
0: Error C:\Users\avatar\Source\Repos\gk-netcore\GateKeeper.API\GateKeeper.API.csproj (0,0) PS0125: --- End of inner exception stack trace ---
0: Error C:\Users\avatar\Source\Repos\gk-netcore\GateKeeper.API\GateKeeper.API.csproj (0,0) PS0125: at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
0: Error C:\Users\avatar\Source\Repos\gk-netcore\GateKeeper.API\GateKeeper.API.csproj (0,0) PS0125: at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
0: Error C:\Users\avatar\Source\Repos\gk-netcore\GateKeeper.API\GateKeeper.API.csproj (0,0) PS0125: at ^e//ki2TpLw/s.^gAHJKdyo.^vLvSRJIm()
0: Error C:\Users\avatar\Source\Repos\gk-netcore\GateKeeper.API\GateKeeper.API.csproj (0,0) PS0125: at PostSharp.Sdk.Utilities.ExceptionHelper.ExecuteUserCode[T](MessageLocation messageLocation, Func`1 userCode, Type[] acceptableExceptions).
0: The process dotnet exited with code 11.
0: ------- Project finished: GateKeeper.API. Succeeded: False. Errors: 15. Warnings: 0
Build completed in 00:00:09.867

Any thoughts?

Regards,

Alistair

  1. Support Staff 1 Posted by PostSharp Techn... on 29 Mar, 2018 01:57 PM

    PostSharp Technologies's Avatar

    Hello,

    could you please isolate the issue and send us a reproduction project?

    Thanks a lot.

    Best regards,
    Daniel

  2. 2 Posted by avatar on 29 Mar, 2018 04:21 PM

    avatar's Avatar

    I'll see what I can do.

    My first attempt, unfortunately, by creating a project with nothing in it but a trivial operation using Newtonsoft.Json and a single aspect, didn't produce the above error, but did produce this somewhat confusing PS0099, which I include along with its reproduction project on the grounds that it might be related, and even if it isn't, seems problematic:

        Error PS0099: Unhandled exception (postsharp-netstandard20.dll release | .NET Core 2.0.6): PostSharp.Sdk.AssertionFailedException: Ambiguity: more than one reference assembly possible to generate the facade for 'newtonsoft.json, version=11.0.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed': {PackageProjectReference Reference="newtonsoft.json, version=11.0.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed, TargetFramework={.NETStandard,Version=v11.0.2}, Path={C:\Users\avatar\.nuget\packages\newtonsoft.json\11.0.2\lib\netstandard2.0\Newtonsoft.Json.dll}", Runtime="newtonsoft.json, version=11.0.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed, TargetFramework={.NETStandard,Version=v11.0.2}, Path={C:\Users\avatar\.nuget\packages\newtonsoft.json\11.0.2\lib\netstandard2.0\Newtonsoft.Json.dll}"}, {PackageProjectReference Reference="newtonsoft.json, version=11.0.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed, TargetFramework={.NETFramework,Version=v2.0}, Path={C:\Users\avatar\.nuget\packages\\newtonsoft.json\11.0.2\lib\net20\Newtonsoft.Json.dll}", Runtime="newtonsoft.json, version=11.0.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed, TargetFramework={.NETStandard,Version=v11.0.2}, Path={C:\Users\avatar\.nuget\packages\newtonsoft.json\11.0.2\lib\netstandard2.0\Newtonsoft.Json.dll}"}, {PackageProjectReference Reference="newtonsoft.json, version=11.0.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed, TargetFramework={.NETFramework,Version=v3.5}, Path={C:\Users\avatar\.nuget\packages\\newtonsoft.json\11.0.2\lib\net35\Newtonsoft.Json.dll}", Runtime="newtonsoft.json, version=11.0.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed, TargetFramework={.NETStandard,Version=v11.0.2}, Path={C:\Users\avatar\.nuget\packages\newtonsoft.json\11.0.2\lib\netstandard2.0\Newtonsoft.Json.dll}"}, {PackageProjectReference Reference="newtonsoft.json, version=11.0.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed, TargetFramework={.NETFramework,Version=v4.0}, Path={C:\Users\avatar\.nuget\packages\\newtonsoft.json\11.0.2\lib\net40\Newtonsoft.Json.dll}", Runtime="newtonsoft.json, version=11.0.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed, TargetFramework={.NETStandard,Version=v11.0.2}, Path={C:\Users\avatar\.nuget\packages\newtonsoft.json\11.0.2\lib\netstandard2.0\Newtonsoft.Json.dll}"}, {PackageProjectReference Reference="newtonsoft.json, version=11.0.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed, TargetFramework={.NETFramework,Version=v4.5}, Path={C:\Users\avatar\.nuget\packages\\newtonsoft.json\11.0.2\lib\net45\Newtonsoft.Json.dll}", Runtime="newtonsoft.json, version=11.0.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed, TargetFramework={.NETStandard,Version=v11.0.2}, Path={C:\Users\avatar\.nuget\packages\newtonsoft.json\11.0.2\lib\netstandard2.0\Newtonsoft.Json.dll}"}, {PackageProjectReference Reference="newtonsoft.json, version=11.0.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed, TargetFramework={.NETStandard,Version=v1.0}, Path={C:\Users\avatar\.nuget\packages\\newtonsoft.json\11.0.2\lib\netstandard1.0\Newtonsoft.Json.dll}", Runtime="newtonsoft.json, version=11.0.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed, TargetFramework={.NETStandard,Version=v11.0.2}, Path={C:\Users\avatar\.nuget\packages\newtonsoft.json\11.0.2\lib\netstandard2.0\Newtonsoft.Json.dll}"}, {PackageProjectReference Reference="newtonsoft.json, version=11.0.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed, TargetFramework={.NETStandard,Version=v1.3}, Path={C:\Users\avatar\.nuget\packages\\newtonsoft.json\11.0.2\lib\netstandard1.3\Newtonsoft.Json.dll}", Runtime="newtonsoft.json, version=11.0.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed, TargetFramework={.NETStandard,Version=v11.0.2}, Path={C:\Users\avatar\.nuget\packages\newtonsoft.json\11.0.2\lib\netstandard2.0\Newtonsoft.Json.dll}"}, {PackageProjectReference Reference="newtonsoft.json, version=11.0.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed, TargetFramework={.NETStandard,Version=v11.0.2}, Path={C:\Users\avatar\.nuget\packages\\newtonsoft.json\11.0.2\lib\netstandard2.0\Newtonsoft.Json.dll}", Runtime="newtonsoft.json, version=11.0.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed, TargetFramework={.NETStandard,Version=v11.0.2}, Path={C:\Users\avatar\.nuget\packages\newtonsoft.json\11.0.2\lib\netstandard2.0\Newtonsoft.Json.dll}"}, {PackageProjectReference Reference="newtonsoft.json, version=11.0.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed, TargetFramework={.NETPortable,Version=v4.0,Profile=Profile328}, Path={C:\Users\avatar\.nuget\packages\\newtonsoft.json\11.0.2\lib\portable-net40+sl5+win8+wp8+wpa81\Newtonsoft.Json.dll}", Runtime="newtonsoft.json, version=11.0.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed, TargetFramework={.NETStandard,Version=v11.0.2}, Path={C:\Users\avatar\.nuget\packages\newtonsoft.json\11.0.2\lib\netstandard2.0\Newtonsoft.Json.dll}"}, {PackageProjectReference Reference="newtonsoft.json, version=11.0.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed, TargetFramework={.NETPortable,Version=v4.5,Profile=Profile259}, Path={C:\Users\avatar\.nuget\packages\\newtonsoft.json\11.0.2\lib\portable-net45+win8+wp8+wpa81\Newtonsoft.Json.dll}", Runtime="newtonsoft.json, version=11.0.0.0, culture=neutral, publickeytoken=30ad4fe6b2a6aeed, TargetFramework={.NETStandard,Version=v11.0.2}, Path={C:\Users\avatar\.nuget\packages\newtonsoft.json\11.0.2\lib\netstandard2.0\Newtonsoft.Json.dll}"}.
        Error PS0099: at PostSharp.Sdk.Extensibility.Project.ExecutePhase(String phase)
        Error PS0099: at PostSharp.Sdk.AspectWeaver.AspectWeaverTask.Execute()
        Error PS0099: at PostSharp.Sdk.AspectInfrastructure.StructuredDeclarationDictionary`1.^fJqG(Func`2 _0)
        Error PS0099: at PostSharp.Sdk.AspectInfrastructure.StructuredDeclarationDictionary`1.^+g+TCqVg(TypeDefDeclaration _0, Func`2 _1, Set`1 _2)
        Error PS0099: at PostSharp.Sdk.AspectInfrastructure.StructuredDeclarationDictionary`1.^lNgKC+Z4(IMetadataDeclaration _0, Func`3 _1)
        Error PS0099: at PostSharp.Sdk.AspectWeaver.AspectWeaverTask.^gJhZb6Cg.^KzeTZ0pV(IMetadataDeclaration _0, AspectInstanceInfo _1)
        Error PS0099: at PostSharp.Sdk.AspectWeaver.AspectWeaverTask.^lp9i7ZhC(InstructionWriter _0, AspectInstanceInfo _1, StructuredDeclarationDictionary`1 _2)
        Error PS0099: at ^klo1uRdwhm2g.CreateAspectWeaverInstance(AspectInstanceInfo _0)
        Error PS0099: at PostSharp.Sdk.AspectWeaver.AspectWeavers.LocationLevelAspectWeaverInstance..ctor(LocationLevelAspectWeaver aspectWeaver, AspectInstanceInfo aspectInstanceInfo)
        Error PS0099: at PostSharp.Sdk.AspectWeaver.AspectWeaverInstance..ctor(AspectWeaver aspectWeaver, AspectInstanceInfo aspectInstanceInfo)
        Error PS0099: at PostSharp.Sdk.CodeModel.ParameterDeclaration.GetSystemParameter(Type[] genericTypeArguments, Type[] genericMethodArguments, BindingOptions options)
        Error PS0099: at ^Mzw3\.bgGgRlJ.^cCM832sT[??0](Object _0, GenericMap _1, Type[] _2, Type[] _3, BindingOptions _4, ^bHXOWbqeB0HQ _5)
        Error PS0099: at ^Mzw3\.bgGgRlJ.^cCM832sT[??0](Object _0, ^ezwsfuIx92Ld _1, ^bHXOWbqeB0HQ _2)
        Error PS0099: at PostSharp.Sdk.CodeModel.ParameterDeclaration.^VCzmhOPP(Type[] _0, Type[] _1, BindingOptions _2)
        Error PS0099: at PostSharp.Sdk.CodeModel.MethodDefDeclaration.GetSystemMethod(Type[] genericTypeArguments, Type[] genericMethodArguments, BindingOptions bindingOptions)
        Error PS0099: at ^Mzw3\.bgGgRlJ.^cCM832sT[??0](Object _0, BindingOptions _1, ^d1u4kZd5aJLe _2)
        Error PS0099: at PostSharp.Sdk.CodeModel.MethodDefDeclaration.^NqB3CEvX(BindingOptions _0)
        Error PS0099: at ^XJbqCOExOmCj.^4IrPP9eT(Object _0, IMethod _1, Type[] _2, Type[] _3, BindingOptions _4)
        Error PS0099: at ^XJbqCOExOmCj.^6pB/qWH+(IMethod _0, Type& _1, Type[] _2, Type[] _3, Type[] _4, BindingOptions _5)
        Error PS0099: at PostSharp.Sdk.CodeModel.TypeRefDeclaration.GetSystemType(Type[] genericTypeArguments, Type[] genericMethodArguments, BindingOptions options)
        Error PS0099: at ^Mzw3\.bgGgRlJ.^cCM832sT[??0](Object _0, BindingOptions _1, ^d1u4kZd5aJLe _2)
        Error PS0099: at ^XJbqCOExOmCj.^NRQTI+sj(INamedType _0, BindingOptions _1)
        Error PS0099: at PostSharp.Platform.Neutral.AssemblyFileLoadingService.LoadAssemblyFromName(IAssemblyName _0)
        Error PS0099: at PostSharp.Sdk.CodeModel.Binding.AssemblyLocator.FindAssembly(IAssemblyName _0)
        Error PS0099: at PostSharp.Sdk.CodeModel.Binding.RuntimeAssemblyLocator.FindAssemblyCore(IAssemblyName _0, IAssemblyIdentity& _1)
        Error PS0099: at PostSharp.Sdk.Extensibility.Project.Execute()
        Error PS0099: at PostSharp.Hosting.PostSharpObject.InvokeProject(ProjectInvocation projectInvocation).
    

    Regards,

    Alistair

  3. 3 Posted by avatar on 29 Mar, 2018 04:35 PM

    avatar's Avatar

    Okay, got it. I took the initial project that was having the problem and chopped stuff out of it, instead, so here's a single-class version of that that reproduces the error. So long as the [Synchronized] attribute is present on the class, it fails with the PS0125 error; take that off, and it builds.

    Thanks,

    Alistair

  4. Support Staff 4 Posted by PostSharp Techn... on 04 Apr, 2018 10:28 AM

    PostSharp Technologies's Avatar

    Hello,

    Thank you for reporting these issues and providing the reproductions. We have filed bugs in our internal bug tracker (#15975, #15979) and we will get back to you once they are fixed.

    -alex

  5. Support Staff 5 Posted by PostSharp Techn... on 11 Apr, 2018 04:33 PM

    PostSharp Technologies's Avatar

    Hello,

    We're closing the ticket for now as the bug has been internally filed as issue #15975. We will contact you as soon as the bug fix has been released.

    For more details on our support policies and prioritization of bug fixes, please visit https://www.postsharp.net/support/policies

    PostSharp Team

  6. PostSharp Technologies closed this discussion on 11 Apr, 2018 04:33 PM.

  7. PostSharp Technologies re-opened this discussion on 23 Apr, 2018 03:51 PM

  8. Support Staff 6 Posted by PostSharp Techn... on 23 Apr, 2018 03:51 PM

    PostSharp Technologies's Avatar

    Hello,

    the bug #15975 has been fixed in the current preview release of PostSharp 5.1.9.
    Should you need further help with this issue, don't hesitate to re-open this discussion.

    Best regards,
    Alex

  9. PostSharp Technologies closed this discussion on 23 Apr, 2018 03:51 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac