project-system icon indicating copy to clipboard operation
project-system copied to clipboard

Updated file with "copy always" does not get copied

Open vsfeedback opened this issue 8 years ago • 6 comments

I have a configuration file in my .NET Core 2.0 console app's root directory. It is set to "Build Action: None" and "Copy Always". The idea is that it will end up in the bin directory.

On first build, all is well.

Then I modify the config file and press Control+Shift+B to build the solution.

I then observe that the file in the bin directory remains out of date, despite it having changed and Copy Always being set.

Build output says that it skipped all my projects. Possibly the cause of the issue? It does not seem to consider this file changing as something that requires a build.

Behavior is same with "Build Action: Content"

This issue has been moved from https://developercommunity.visualstudio.com/content/problem/252209/updated-file-with-copy-always-does-not-get-copied.html VSTS ticketId: 615693 These are the original issue comments: (no comments) These are the original issue solutions: (no solutions)

vsfeedback avatar May 22 '18 17:05 vsfeedback

I still get this behavior with the newest Visual Studio 2017 Community version.

But also found a workaround: It works with "Rebuild Solution"

ErikKalkoken avatar Nov 24 '18 15:11 ErikKalkoken

@ErikKalkoken This has been fixed in 2019 and will be available in its first preview.

davkean avatar Nov 25 '18 23:11 davkean

Why is this closed and doesn't appear to be targeted for VS 2017?

MarioAtTrimble avatar Jan 29 '19 16:01 MarioAtTrimble

@MarioAtTrimble this fix has not been back ported to VS2017.

drewnoakes avatar Feb 19 '19 19:02 drewnoakes

Right. I'm wondering why - most people are using 2017. We need this to work

mtrtm avatar Feb 19 '19 19:02 mtrtm

Similar to every release we've done in the past 15 years, when we've started working on a new major, our bar for servicing the downlevel product goes up, see our roadmap: https://github.com/dotnet/project-system/blob/master/docs/repo/roadmap.md, in particular:

This release is considered done, and only impactful bugs, crashes and hangs that block major scenarios will be taken.

A workaround for this bug would be to opt out of the up-to-date check for this project via:

<PropertyGroup>
   <DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
</PropertyGroup>

davkean avatar Feb 19 '19 21:02 davkean