Closed MihailsKuzmins closed 3 years ago
ใใไฝฟใฃใฆใๅฅฝใใงใใใใๆไผใใๅฟ ่ฆใ ใฃใใใๆใใฆใใ ใใใพใใใใ
ใใใใจใใใใใพใใ็ขบ่ชใใพใใใพใใFody/Fody.Costuraใใซใคใใฆใ
ใใฎๅ้กใฎ็บใฎใPRใใฎๆฏๅบฆใใงใใพใใใ @paulushubใใใ่ฆใฆใใใใพใใใใ ใPRใใฎ็ชๅทใฏ #200 ใงใใ
ใไน ใใถใใงใใญใ @paulushubใใใใใคNuGetใใใฑใผใธใๅคๆดใใพใใใใใฎๅคๆดใๆใฃใฆใใใฎใงใใใใ ใจใใใใใใsubmoduleใใไฝฟใฃใฆใใพใใใใใซใใฏๆฐๅใใใใใพใใไพฟๅฉใใใชใใงใใใญใ:cry:
@MihailsKuzmins ็ณใ่จณใใใพใใใญ๏ผNuGetใใใฑใผใธใๆดๆฐใใพใใใ
@MihailsKuzmins ็ณใ่จณใใใพใใใญ๏ผNuGetใใใฑใผใธใๆดๆฐใใพใใใ
@paulushubใใใ่ฌใใชใใฆใใใใงใใNuGetใใใฑใผใธใๆดๆฐใใฆใใใฆใใใใใจใใใใใพใใใใ็ฒใๆงใงใใใ
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 useAppDomain.Current.BaseDirectory
. AppDomain is compatible with Fody.Costura and produces the same output asassembly.Location
.So, could it be possible to use
AppDomain.Current.BaseDirectory
instead? If you find it difficult, I could try to prepare a PR ๐.ใใใงใฏใ็ด ๆตใชใใใฑใผใธใใใใใจใใใใใพใใใใไฝฟใฃใฆใๅฅฝใใงใใใใๆไผใใๅฟ ่ฆใ ใฃใใใๆใใฆใใ ใใใพใใใใ
ใใใใใ้กใใใพใใ ใใทใฃใ