Skip to content

Noobie question about MSBuildForUnity #44

@loic-lopez

Description

@loic-lopez

Hello everyone I wondering if is it possible to use MSBuildForUnity and Fody.

I have created a .csproj file under Assets/Scripts/Library

added :

<Project Sdk="Microsoft.NET.Sdk">
    <PropertyGroup>
        <TargetFramework>netstandard2.0</TargetFramework>
    </PropertyGroup>
    <ItemGroup>
        <PackageReference Include="Fody" Version="6.0.3"/>
        <PackageReference Include="MethodTimer.Fody" Version="3.1.0"/>
    </ItemGroup>
</Project>

But it throws:

PrecompiledAssemblyException: Multiple precompiled assemblies with the same name Library.dll included for the current platform. Only one assembly with the same name is allowed per platform. Assembly paths: Assets/Scripts/Library/bin/Debug/netstandard2.0/Library.dll, Assets/Scripts/Library/obj/Debug/netstandard2.0/Library.dll

In fact I'm looking for a tool that would allow me to use weaving code on unity, like Fody

Thanks for reply

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