Skip to content

VS2017 Not Copying Satellite Assemblies to Proper Output Location #1006

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

Closed
nguerrera opened this issue Mar 17, 2017 · 16 comments
Closed

VS2017 Not Copying Satellite Assemblies to Proper Output Location #1006

nguerrera opened this issue Mar 17, 2017 · 16 comments
Assignees
Labels

Comments

@nguerrera
Copy link
Contributor

From @thefringeninja on March 16, 2017 17:21

I've been porting a project over to the new .csproj format. This project has a dependency on FluentValidation, which uses satellite assemblies. In VS2015, on compilation, these would be placed in their correct subfolders. VS2017 places all the satellite assemblies in the root build output folder. Since they all have the same filename, only one remains.

Minimal repro project file:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net46</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="FluentValidation" Version="5.5.0" />
  </ItemGroup>

</Project>

Copied from original issue: dotnet/msbuild#1877

@nguerrera
Copy link
Contributor Author

From @cdmihai on March 16, 2017 18:11

@srivatsn This looks like an SDK issue, right?

@nguerrera
Copy link
Contributor Author

From @thefringeninja on March 17, 2017 14:0

Never mind. The issue was that I was running dotnet build not dotnet publish.

@nguerrera
Copy link
Contributor Author

From @thefringeninja on March 17, 2017 14:27

Spoke too soon! VS2017 and Rider will use dotnet build. Why does it behave differently than dotnet publish?

@nguerrera
Copy link
Contributor Author

From @AndyGerlicher on March 17, 2017 17:56

@livarcocc can you comment on this please?

@nguerrera
Copy link
Contributor Author

From @livarcocc on March 17, 2017 22:36

@dsplaisted @nguerrera can you guys comment?

@nguerrera
Copy link
Contributor Author

Looks like a bug in CopyLocalLockFileAssemblies handling of satellites. I'll move this to SDK and investigate.

@thefringeninja Thanks for the report.

@AArnott
Copy link
Contributor

AArnott commented Apr 25, 2017

Per #1132 this only repros for me when the project defines the TargetFrameworks property.

@nguerrera
Copy link
Contributor Author

@AArnott Thanks. I missed that subtlety in #1132. Strangely, the repro steps here for the same symptom show TargetFramework not TargetFrameworks. We'll have to look a both cases to be sure.

@clairernovotny
Copy link

Probably the same issue I just filed here NuGet/Home#5164

Repros with Humanizer. Steps in linked bug

@karelz
Copy link
Member

karelz commented May 6, 2017

@nguerrera we believed this is release blocker. Do you agree?
Or is there some workaround @onovotny didn't find?

@nguerrera
Copy link
Contributor Author

I agree. I have not looked for a workaround. I plan to fix this soon.

@karelz
Copy link
Member

karelz commented May 6, 2017

Awesome, thanks a lot!

@nguerrera
Copy link
Contributor Author

PR #1224 is out to fix this

@nguerrera
Copy link
Contributor Author

Fixed by #1224

@PatoMickey
Copy link

Any news on this issue? The problem stills to occur.

@pharring
Copy link

pharring commented Jun 26, 2017

[Just making a note for search engines to pick up the following error messages.]
If you see the following error while running unit tests in VSTS:

Warning: Test Run deployment issue: an error occurred while getting satellite assemblies for deployment item
System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
Parameter name: startIndex

then it may be caused by this issue. The workaround at #1360 (comment) should fix it.

mmitche pushed a commit to mmitche/sdk that referenced this issue Jun 5, 2020
…ofileImport

Import the default publish profile from WebSdk if the profile is not …
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants