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.

Normal builds still run under devenv.exe in VS 16.0 Pre2

See original GitHub issue

From @jeromelaban on January 24, 2019 13:23

Steps to reproduce

When build this solution, and more specifically this project under visual studio, the following message appear:

1>------ Build started: Project: Uno.UI (Uno.UI\Uno.UI), Configuration: Debug Any CPU ------
1>Building target framework: xamarinmac20
1>Building target framework: xamarinios10
1>Building target framework: net46
1>Building target framework: netstandard2.0
1>src\SourceGenerators\Uno.UI.Tasks\Content\Uno.UI.Tasks.targets(53,5): warning : The Uno.UI.Tasks build task is running under devenv.exe you will have to restart Visual Studio to rebuild it.
1>Done building project "Uno.UI.csproj".
1>src\SourceGenerators\Uno.UI.Tasks\Content\Uno.UI.Tasks.targets(77,5): warning : The Uno.UI.Tasks build task is running under devenv.exe you will have to restart Visual Studio to rebuild it.
1>Done building project "Uno.UI.csproj".

This message is produced by this task to warn the user of a devenv.exe locked task.

I tried reproducing using a smaller sample, but could not get it.

Environment data

msbuild /version output:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview>msbuild /version
Microsoft (R) Build Engine version 16.0.360-preview+g9781d96883 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

16.0.360.33175

OS info:

Microsoft Windows [Version 10.0.17134.472]
(c) 2018 Microsoft Corporation. All rights reserved.

Copied from original issue: Microsoft/msbuild#4095

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
davkeancommented, Jan 29, 2019

Okay, I’ve got it down to:

    <MSBuild Projects="$(MSBuildProjectFile)"
             Targets="_InnerUnoResourcesGeneration_Assets"
             BuildInParallel="true"
             Properties="Configuration=$(Configuration);Platform=$(Platform);Dummy2=true">
      <Output TaskParameter="TargetOutputs" ItemName="UnoRetargetedAssetsOutput" />
    </MSBuild>

The original build request to build the project was run out-of-proc, but it appears to service the above request with an in-proc node that was running for something else. I would have expected this to respect the NodeAffinity of the original request. Started a thread with MSBuild folks.

0reactions
jeromelabancommented, Jan 20, 2020

Duplicate resources are a Xamarin issue, which is not happening all the time.

Adding

<AndroidUseManagedDesignTimeResourceGenerator>False</AndroidUseManagedDesignTimeResourceGenerator>

is likely to help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Normal builds still run under devenv.exe in VS 16.0 Pre2
Tasks build task is running under devenv.exe you will have to restart Visual Studio to rebuild it. 1>Done building project "Uno.UI.csproj".
Read more >
Devenv command line switches - Visual Studio (Windows)
Devenv lets you set various options for the IDE, build projects, debug projects, and deploy projects from the command line. Use these switches ......
Read more >
Build specific Visual studio project under project solution ...
Navigate to solution folder when you run above command, or use ... Using devenv.exe directly prevents output from appearing on the console.
Read more >
Why Doesn't My Visual Studio Solution Build? A ...
By all means try it but don't be surprised when the solution still stubbornly refuses to build.
Read more >
Visual Studio 2019 command line /upgrade hangs
We use msbuild with a .build file that calls devenv - 10.6.6 hangs on build start if you don't run IDE on that...
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