Skip to content

FastUpToDate: Up-to-date check threw System.ArgumentNullException for wix4 project #9348

@svg2003

Description

@svg2003

Visual Studio Version

Version 17.7.7

Summary

TestWix4Package.zip

For wix4 project, FastUpToDate throws below exception.
Looking on place, MsBuildProjectDirectory is null, albeit ProjectTargetPath contains correct value.

This is in MSVS output

Build started...
1>FastUpToDate: Up-to-date check threw an exception. Not up-to-date. System.ArgumentNullException: Value cannot be null.
1>Parameter name: path1
1>   at System.IO.Path.Combine(String path1, String path2)
1>   at Microsoft.VisualStudio.ProjectSystem.UpToDate.BuildUpToDateCheck.<>c__DisplayClass44_0.<<IsUpToDateInternalAsync>g__CheckAsync|0>d.MoveNext() (TestWix4Package)
1>FastUpToDate: Up-to-date check completed in 67.5 ms (TestWix4Package)

https://github.com/dotnet/project-system/blob/main/src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/UpToDate/BuildUpToDateCheck.cs#L1084

Steps to Reproduce

  1. Create new project from standard template: "MSI Package (Wix v4)"
  2. Try to build that project

Expected Behavior

No exception, and fastuptodate works for wix projects

Actual Behavior

Since fastcheck doesn't work, projects are constantly rebuilds
TestWix4Package.zip

User Impact

Metadata

Metadata

Assignees

Labels

Feature-Up-to-dateBuild up-to-date check that avoids shelling out to MSBuild unless necessary.Triage-ApprovedReviewed and prioritized

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions