Skip to content

Akka.Interfaced.Templates.targets typo #34

@ka4ep

Description

@ka4ep

Good day!
I've just installed the 0.5.4 Akka.Interfaced.Tempates nuget package, trying to build a literally empty "interfaces-only" project and constantly getting BadImageFormatException in the Visual Studio output window :

1>------ Build started: Project: EPasaule.Segway.Iem.Akka.Interfaces, Configuration: Debug Any CPU ------
1> [AkkaInterfacedPreprocessing] - Project=EPasaule.Segway.Iem.Akka.Interfaces
1> Start Process!
1> - Build sources
1> Exception in processing:
1> System.BadImageFormatException: Cannot load a reference assembly for execution.
1> at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence)
1> at System.Reflection.Assembly.LoadFile(String path)
1> at CodeGenerator.AssemblyLoader.<>c.b__1_2(String file)
1> at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() 1> at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer`1 comparer)
1> at CodeGenerator.AssemblyLoader.BuildAndLoad(String[] sourcePaths, String[] referencePaths, String[] defines)
1> at CodeGenerator.Program.Process(Options options)
1>C:\Users\sergej.nuget\packages\akka.interfaced.templates\0.5.4\build\Akka.Interfaced.Templates.targets(59,5): error MSB3073: The command ""C:\Users\sergej.nuget\packages\akka.interfaced.templates\0.5.4\build..\tools\CodeGenerator.exe" "@obj\Debug\EPasaule.Segway.Iem.Akka.Interfaces.Akka.Interfaced.CodeGen.Args.txt"" exited with code 1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Following error description, there is a typo in Akka.Interfaced.Templates.targets :

<Exec Command='"$(AkkaInterfacedCodeGenToolExe)" "@$(ArgsFile)"' />

should be without @

<Exec Command='"$(AkkaInterfacedCodeGenToolExe)" "$(ArgsFile)"' />

... and that's the fix.

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