Build uses invalid task

kovalikp's Avatar


16 Jun, 2015 05:56 PM


I'm having a problem with a build. I have 2 projects that use task from 2 versions of an assembly.

Project src\NuProj.ProjectSystem.12\NuProj.ProjectSystem.12.csproj
imports src\NuProj.ProjectSystem.12\ProjectSystem.targets
that uses XamlRuleToCode from lib\Xaml2Cs.exe.

Project src\NuProj.ProjectSystem.14\NuProj.ProjectSystem.14.csproj
imports src\NuProj.ProjectSystem.14\ProjectSystem.targets
that uses XamlRuleToCode from lib14\Xaml2Cs.exe.

Locally, MSBuild loads correct task/assembly for each project, but in AppVeyor build reuses task from previous project. This causes to XamlRuleToCode generate incorrect code file for later project and fails the build. I'm using Visual Studio 2015 RC environment. Building the same Build.cmd script here and locally.

  1. Support Staff 1 Posted by Feodor Fitsner on 16 Jun, 2015 06:01 PM

    Feodor Fitsner's Avatar

    Is it a public project?

  2. 2 Posted by kovalikp on 16 Jun, 2015 06:04 PM

    kovalikp's Avatar

    Yes. Here is a branch where I'm trying to get this working:

    edit: here is an line related to the error:

    XamlRuleToCode should generate System.Collections.Immutable.IImmutableDictionary type instead of Microsoft.Collections.Immutable.IImmutableMap. The types are hardcoded in the Xaml2Cs.exe assemblies.

  3. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:56 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac