Skip to content

Update Builder task BeforeTargets fieldΒ #232

@Delunado

Description

@Delunado

I've been changing my project to use the latest preview and new content builder and it works just nice.
I have not found any big problem and the docs are good πŸ™‚

The only big problem I have found is after setting everything up, every time I ran the project it showed this error:
Unhandled exception. System.DllNotFoundException: Unable to load DLL 'monogame.native' or one of its dependencies: The specified module could not be found. (0x8007007E)

If I changed the csproj and then run, it worked. But if I just pressed run again, it didnt work. So it looked like some problem with incremental builds.

If I added <DisableFastUpToDateCheck>True</DisableFastUpToDateCheck> it worked every time, but I wanted to investigate the issue further because It didnt feel natural, haha

So after reading the help chat on Discord, I tried to use the BeforeTargets="BeforeCompile" as told on this message.
And this works perfectly, even without the DisableFastUpToDateCheck.

So I encourage to change the docs to tell about the BeforeCompile instead of Build, because I have been heading against the wall for a bit. I was using Rider as IDE.

If everything is OK, I would like to submit a PR myself to practice a bit ^^

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