Skip to content

Incremental Csc is broken in our SDK when you have a .resx #284

Closed

Description

@eerhardt

Repro:

dotnet new -t msbuild
Add a .resx file
dotnet restore3
dotnet build3
dotnet build3

Expected results:

The 2nd build3 should be faster than the first, by a lot since nothing has changed.

Actual results:

The 2nd build3 takes the same amount of time on my machine. Doing a /v:diag produces:

Building target "CoreCompile" completely.
Input file "obj\Debug\netstandard1.3\NuGet.Frameworks.Strings.resources" is newer than output file "bin\Debug\\netstandard1.3\NuGet.Frameworks.xml".

and earlier that generated the NuGet.Frameworks.Strings.resources

Target "CoreResGen: (TargetId:32)" in file "F:\cli\artifacts\win10-x64\stage2\sdk\1.0.0-preview3-003844\Microsoft.Common.CurrentVersion.targets" from project "F:\git\JoelNuGet\src\NuGet.Core\NuGet.Frameworks\NuGet.Frameworks.csproj" (target "ResGen" depends on it):
Set Property: GenerateResourceMSBuildArchitecture=CurrentArchitecture
Set Property: ResgenToolPath=
Set Property: GenerateResourceMSBuildRuntime=CurrentRuntime
Using "GenerateResource" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
Task "GenerateResource" (TaskId:15)

build.log.txt

@rainersigwald - I'm not seeing where the problem is off the top of my head. It looks like the CoreResGen task in Microsoft.Common.CurrentVersion.targets should be incremental, but isn't.

Activity

  1. rainersigwald commented on Oct 14, 2016

    @rainersigwald
    Member

    dotnet/msbuild#1197

    CoreResGen isn't incremental anywhere, but the task it invokes is . . . on full framework. We'll need to make it work on .NET Core, too.

  2. nguerrera commented on Oct 26, 2016

    @nguerrera
    Contributor

    Closing this as the issue is in msbuild and adequately tracked there.

  3. added a commit that references this issue on Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions