File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 112112 <Exec Command =" pwsh -ExecutionPolicy Bypass -File " $(MSBuildProjectDirectory)\..\..\Signer.ps1" sign " $(PublishDir)$(TargetFileName)" " $(MSBuildProjectDirectory)\keyasio_private.key" " />
113113 </Target >
114114
115+ <Target Name =" ExcludeMainAssemblyFromBundle" BeforeTargets =" GenerateSingleFileBundle" Condition =" '$(PublishSingleFile)' == 'true'" >
116+ <ItemGroup >
117+ <MainAssemblyToExclude Include =" @(FilesToBundle)" Condition =" '%(Filename)%(Extension)' == 'KeyASIO.dll'" />
118+ </ItemGroup >
119+ <Message Text =" Excluding main assembly from bundle and copying to publish dir: @(MainAssemblyToExclude)" Importance =" High" />
120+ <Copy SourceFiles =" @(MainAssemblyToExclude)" DestinationFolder =" $(PublishDir)" />
121+ <ItemGroup >
122+ <FilesToBundle Remove =" @(FilesToBundle)" Condition =" '%(Filename)%(Extension)' == 'KeyASIO.dll'" />
123+ </ItemGroup >
124+ </Target >
125+
115126 <Target Name =" ObfuscateSecretsInBundle" BeforeTargets =" GenerateSingleFileBundle" Condition =" '$(ConfuserExe)' != '' And '$(PublishSingleFile)' == 'true'" >
116127 <Message Text =" Obfuscating KeyAsio.Secrets.dll before bundling..." Importance =" High" />
117- <PropertyGroup >
118- <SecretsDllPath >$(PublishDir)KeyAsio.Secrets.dll</SecretsDllPath >
119- </PropertyGroup >
120- <Exec Command =" " $(ConfuserExe)" -file " $(SecretsDllPath)" -targetfile " $(SecretsDllPath)" -anti_debug 1 -hide_calls 1 -control_flow 1 -flow_level 9 -virtualization 1 -naming stealth" />
128+ <ItemGroup >
129+ <SecretsDllToObfuscate Include =" @(FilesToBundle)" Condition =" '%(Filename)%(Extension)' == 'KeyAsio.Secrets.dll'" />
130+ </ItemGroup >
131+ <Message Text =" Found Secrets DLL at: @(SecretsDllToObfuscate)" Importance =" High" />
132+ <Exec Command =" " $(ConfuserExe)" -file " %(SecretsDllToObfuscate.Identity)" -targetfile " %(SecretsDllToObfuscate.Identity)" -anti_debug 1 -hide_calls 1 -control_flow 1 -flow_level 9 -virtualization 1 -naming stealth" Condition =" '@(SecretsDllToObfuscate)' != ''" />
121133 </Target >
122134
123135</Project >
You can’t perform that action at this time.
0 commit comments