question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VS2017 Not Copying Satellite Assemblies to Proper Output Location

See original GitHub issue

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: Microsoft/msbuild#1877

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:16 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
pharringcommented, 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 https://github.com/dotnet/sdk/issues/1360#issuecomment-310157372 should fix it.

2reactions
nguerreracommented, May 6, 2017

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to set post build event in VS to copy all satellite ...
You can use XCOPY command in post-build script.
Read more >
How to stop references being copied to output directory ...
When using dotnet build on the My.Assembly project, the Private assemblies are always copied to the /external/ folder (resulting in multiple ...
Read more >
Why do visual studio generate a lot of localized files about ...
This is because you've enabled runtime compilation for your application, which results in satellite assemblies being copied to your app's output directory.
Read more >
Create satellite assemblies - .NET
Get started with creating satellite assemblies for .NET apps. A satellite assembly can be easily updated or replaced to provide localized ...
Read more >
Linked project items do not get copied to the output directory
VS2017 does correctly copy those those project items to the output directory. Visual Studiowindows 10.0C++visual studio 2019 version 16.0.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found