Problems with prepare application to release - integrate dotfuscater protection Xamarin, Visual Studio 2017, android

好久不见. 提交于 2019-12-11 18:07:10

问题


I prepare my application to release ( android ) , during perform integration dotfuscator , described in

https://www.preemptive.com/dotfuscator/pro/userguide/en/getting_started_xamarin.html On build of android project receive following error

PreEmptive.Dotfuscator.Xamarin.targets(251,9): error MSB4184: The expression """.TargetName" cannot be evaluated. Method 'System.String.TargetName' not found.

I get the file PreEmptive.Dotfuscator.Xamarin.targets as is. Should it be changed after download ?

I use Xamarin in Visual Studio 2017.

Thanks, Anna


回答1:


Disclaimer: I work for PreEmptive Solutions on the Dotfuscator team, and am answering in that capacity.

Update: This issue has been corrected in version 1.3.0 of the file, available here. The original answer follows.

This is an error in the PreEmptive.Dotfuscator.Xamarin.targets file. We've filed an issue internally, but as a workaround for today, you can edit line 251 of that file to replace this:

<Destination>%(IntermediateSatelliteAssembliesWithTargetPath.Culture)\$(IntermediateSatelliteAssembliesWithTargetPath.TargetName).resources.dll</Destination>

with this:

<Destination>%(IntermediateSatelliteAssembliesWithTargetPath.Culture)\$(TargetName).resources.dll</Destination>

Thanks for bringing this to our attention.



来源:https://stackoverflow.com/questions/47568995/problems-with-prepare-application-to-release-integrate-dotfuscater-protection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!