question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot use SharpVectors with Fody.Costura

See original GitHub issue

In one of my projects I use Fody.Costura to generate a single file and SharpVectors to render svg images, but it looks like SharpVectors library is not compatible with Fody.Costura because in many places assembly.Location is used. Fody.Costura does not tolerate it (https://github.com/Fody/Costura/issues/251#issuecomment-524191388)

I have looked at usages of assembly.Location and it looks like only the executing or entry assembly is used. Therefore, there is a workaround. It is possible to use AppDomain.Current.BaseDirectory. AppDomain is compatible with Fody.Costura and produces the same output as assembly.Location.

So, could it be possible to use AppDomain.Current.BaseDirectory instead? If you find it difficult, I could try to prepare a PR 😃.

それでは、素敵なパッケージ、ありがとうございます。よく使って、好きですよ。お手伝いが必要だったら、教えてくださいませんか。

よろしくお願いします。 ミシャ。

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
paulushubcommented, Aug 2, 2021

@MihailsKuzmins 申し訳ありませんね!NuGetパッケージを更新しました。

1reaction
MihailsKuzminscommented, Jul 30, 2021

お久しぶりですね。 @paulushubさん、いつNuGetパッケージを変更しますか。この変更を持っているのですから。 とりあえず、「submodule」を使っていますが、ビルドは数分をかかります。便利じゃないですよね。😢

Read more comments on GitHub >

github_iconTop Results From Across the Web

"The path is not of a legal form." after Windows update #251
Hi. After the last update of windows 10 there is a problem with "The path is not of a legal form". this problem...
Read more >
C# - why costura and fody doesn't work to me?
(Translator used.) I was making an exe file using Costura and Fody. However, if the dll file is missing, it cannot run.
Read more >
Viewing online file analysis results for 'tmpcs7eacg_'
Creates guarded memory regions (anti-debugging trick to avoid memory dumping). details: "tmpcs7eacg_.exe" is allocating memory with PAGE_GUARD access rights ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found