Repository navigation
Closed
Description
I know this can't be fixed wholly in the dotnet/sdk, but this SDK owns this experience, so logging here to track the full end-to-end experience.
Repro:
dotnet new -t msbuild
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:
Target Performance Summary:
0 ms CreateSatelliteAssemblies 1 calls
0 ms GetFrameworkPaths 1 calls
0 ms AfterCompile 1 calls
0 ms ExpandSDKReferences 1 calls
0 ms _SetTargetFrameworkMonikerAttribute 1 calls
0 ms ResolveLockFileAnalyzers 1 calls
0 ms GetAssemblyVersion 1 calls
0 ms Build 2 calls
0 ms GetInstalledSDKLocations 1 calls
0 ms CreateCustomManifestResourceNames 1 calls
0 ms AfterBuild 1 calls
0 ms AfterResolveReferences 1 calls
0 ms BeforeResGen 1 calls
0 ms PrepareResources 1 calls
0 ms ResGen 1 calls
0 ms _GenerateCompileInputs 1 calls
0 ms Compile 1 calls
0 ms _GenerateSatelliteAssemblyInputs 1 calls
0 ms ResolvePackageDependenciesForBuild 1 calls
0 ms PrepareForRun 1 calls
0 ms GetCopyToOutputDirectoryItems 1 calls
0 ms BeforeBuild 1 calls
0 ms _CopySourceItemsToOutputDirectory 1 calls
0 ms SetWin32ManifestProperties 1 calls
0 ms CoreBuild 1 calls
0 ms ResolveReferences 1 calls
0 ms PrepareProjectReferences 1 calls
0 ms BeforeResolveReferences 1 calls
0 ms PrepareResourceNames 1 calls
0 ms GetReferenceAssemblyPaths 1 calls
0 ms AfterResGen 1 calls
0 ms BeforeCompile 1 calls
0 ms _SplitProjectReferencesByFileExistence 1 calls
0 ms GetTargetPath 1 calls
0 ms GenerateBuildDependencyFile 1 calls
0 ms _SetEmbeddedWin32ManifestProperties 1 calls
1 ms BuildOnlySettings 1 calls
1 ms _CheckForUnsupportedTargetFramework 1 calls
1 ms GenerateAssemblyInfo 1 calls
1 ms ResolveProjectReferences 1 calls
1 ms AssignTargetPaths 1 calls
1 ms CoreResGen 1 calls
1 ms ResolveSDKReferences 1 calls
1 ms _CheckForCompileOutputs 1 calls
1 ms SplitResourcesByCulture 1 calls
1 ms _GetProjectReferenceTargetFrameworkProperties 1 calls
1 ms ResolveLockFileReferences 1 calls
1 ms IncrementalClean 1 calls
2 ms PrepareForBuild 1 calls
2 ms GenerateTargetFrameworkMonikerAttribute 1 calls
2 ms CoreGenerateAssemblyInfo 1 calls
2 ms _ComputeLockFileAnalyzers 1 calls
3 ms _CheckForInvalidConfigurationAndPlatform 1 calls
6 ms CopyFilesToOutputDirectory 1 calls
6 ms _SetBuildInnerTarget 1 calls
15 ms _CleanGetCurrentAndPriorFileWrites 1 calls
60 ms GenerateBuildRuntimeConfigurationFiles 1 calls
65 ms _ComputeLockFileReferences 1 calls
183 ms RunResolvePackageDependencies 1 calls
245 ms ResolveAssemblyReferences 1 calls
916 ms CoreCompile 1 calls
1644 ms DispatchToInnerBuilds 1 calls
Task Performance Summary:
0 ms GetAssemblyVersion 1 calls
0 ms GetFrameworkPath 1 calls
0 ms AssignTargetPath 5 calls
0 ms Delete 1 calls
1 ms RemoveDuplicates 2 calls
1 ms FindAppConfigFile 1 calls
1 ms MakeDir 1 calls
1 ms AssignCulture 1 calls
1 ms ReadLinesFromFile 1 calls
2 ms WriteCodeFragment 1 calls
2 ms Message 3 calls
3 ms FindUnderPath 5 calls
5 ms Copy 2 calls
8 ms ConvertToAbsolutePath 1 calls
60 ms GenerateRuntimeConfigurationFiles 1 calls
181 ms ResolvePackageDependencies 1 calls
244 ms ResolveAssemblyReference 1 calls
913 ms Csc 1 calls
1632 ms MSBuild 2 calls
As you can see, Csc is still getting called for subsequent invocations.
Metadata
Metadata
Assignees
Labels
No labels
Activity
rainersigwald commentedon Oct 13, 2016
A diag MSBuild log should have a lot of information to help with diagnosing non-incremental builds.
eerhardt commentedon Oct 13, 2016
OK, you asked for it:
build.txt
eerhardt commentedon Oct 13, 2016
Looking through it (maybe I should have done that myself right away), it says:
@nguerrera ?
eerhardt commentedon Oct 13, 2016
I'll attempt at putting up a PR for this.
rainersigwald commentedon Oct 13, 2016
assemblyinfo.cs is stale because it was generated earlier:
And that target isn't incremental.
nguerrera commentedon Oct 13, 2016
Fixed by #276
Merge pull request dotnet#275 from weshaggard/AddPCLShims
Update docs on registry authentication and image naming (dotnet#275)