Skip to content

Remove dependency on .NET SDK installs for IL Tools #2298

@SamBent

Description

@SamBent
  • .NET Core Version: (e.g. 3.0 Preview1, or daily build number, use dotnet --info) 5.0.100-alpha1-015914
  • Windows version: (winver) 1909 (10.0.18363)
  • Does the bug reproduce also in WPF for .NET Framework 4.8?: No
  • Is this bug related specifically to tooling in Visual Studio (e.g. XAML Designer, Code editing, etc...)? No

Problem description: Build failure when suitable .NET SDK is not installed

Repro steps:

  1. New machine with Win10 1909 (hence .NET 4.8).
  2. Setup machine per WPF developer guide.
  3. Fork/clone master branch of dotnet/wpf.
  4. Obtain fix for Remove dependency on .NET include file #2297
  5. build

Actual behavior:
D:\repos\wpf\eng\WpfArcadeSdk\tools\InjectModuleInitializer.targets(372,5): error MSB4044: The "ILDasmTask" task was not given a value for the required parameter "ILDAsm". [D:\repos\wpf\src\Microsoft.DotNet.Wpf\src\PresentationCore\PresentationCore.csproj]

Expected behavior: No failure

This failure goes away after installing .NET 4.6.1 SDK, which makes a version of ildasm.exe visible to
PresentationCore.csproj. Note that ilasm.exe is already visible (at C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ILAsm.exe) before installing a .NET SDK

Metadata

Metadata

Assignees

Labels

BugProduct bug (most likely)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions