Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing assembly in PublishSingleFile #3455

Closed
genifycom opened this issue Sep 24, 2019 · 5 comments
Closed

Missing assembly in PublishSingleFile #3455

genifycom opened this issue Sep 24, 2019 · 5 comments

Comments

@genifycom
Copy link

Issue Title

An assembly specified in the application dependencies manifest (BVLocalSync.deps.json) was not found:
package: 'Microsoft.PowerShell.Native', version: '6.2.0'
path: 'runtimes/win-x64/native/pwrshplugin.pdb'

General

The non PublishSingleFile application works fine. I have also tried installing nuget Microsoft.Powershell.Native but no change.

@scalablecory
Copy link
Contributor

@livarcocc is this in your area?

@livarcocc
Copy link

cc @jeffschwMSFT

@jeffschwMSFT
Copy link
Member

jeffschwMSFT commented Sep 25, 2019

By default we do not bundle pdbs, you can explicitly include them with the following:

<ItemGroup>
    <Content Update="*.pdb">
      <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
      <IncludeSymbolsInSingleFile>true</IncludeSymbolsInSingleFile>
    </Content>
  </ItemGroup>

https://github.com/dotnet/designs/blob/master/accepted/single-file/design.md#build-system-interface

cc @swaroop-sridhar

@swaroop-sridhar
Copy link

This is a dup of PowerShell/PowerShell#10266
The bug is fixed in the Powershell repo, not sure which version of the Powershell package has the fix.

@adityapatwardhan @SteveL-MSFT

@genifycom
Copy link
Author

Thanks for the info Jeff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants