6.0.11-preview build fail on jenkins run as localsystem user

shijiyong's Avatar

shijiyong

04 Jun, 2018 05:55 AM

jenkins master and cluster run as localsystem user,
when build, with error:
POSTSHARP : error PS0228: PostSharp property "C:\Windows\system32\config\systemprofile\.nuget\packages\postsharp\6.0.11-preview\build\\Temp\FrameworkInfo\InstalledFrameworks-4d072967600a9712d2d03eb93ccc8777.xml" points to file "InstalledFrameworksFilePath" that does not exists or is not in the correct format.

  1. Support Staff 1 Posted by PostSharp Techn... on 05 Jun, 2018 09:25 AM

    PostSharp Technologies's Avatar

    Hello,

    Thank you for reporting this issue. We have filed an internal bug (#16141) and we'll get back to you once the bug is fixed.

    As a workaround you can try to set the PostSharpProgramDataDirectory property in your *.csproj file after the PostSharp.targets import line.

      <Import Project="..\packages\PostSharp.6.0.11-preview\build\PostSharp.targets" Condition="Exists('..\packages\PostSharp.6.0.11-preview\build\PostSharp.targets')" />
      <PropertyGroup>
        <PostSharpProgramDataDirectory>$(TEMP)\PostSharp</PostSharpProgramDataDirectory>
      </PropertyGroup>
    

    -alex

  2. Support Staff 2 Posted by PostSharp Techn... on 11 Jun, 2018 09:34 AM

    PostSharp Technologies's Avatar

    Hello,

    this bug was fixed in 6.0.12-rc.

    Best regards,
    Daniel

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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