|
|
@@ -301,8 +301,8 @@ |
|
|
|
<None Include="Resources\ss16.png" />
|
|
|
|
<None Include="Resources\ss24.png" />
|
|
|
|
<None Include="Resources\ssw128.png" />
|
|
|
|
<Content Include="Data\zh-CN.txt" />
|
|
|
|
<Content Include="Data\zh-TW.txt" />
|
|
|
|
<Content Include="Data\zh_CN.txt" />
|
|
|
|
<Content Include="Data\zh_TW.txt" />
|
|
|
|
<Content Include="Data\ja.txt" />
|
|
|
|
<Content Include="Data\privoxy_conf.txt" />
|
|
|
|
<Content Include="Data\user-rule.txt" />
|
|
|
@@ -357,25 +357,25 @@ |
|
|
|
<Using xmlns="http://schemas.microsoft.com/developer/msbuild/2003" Namespace="System" />
|
|
|
|
<Using xmlns="http://schemas.microsoft.com/developer/msbuild/2003" Namespace="System.IO" />
|
|
|
|
<Using xmlns="http://schemas.microsoft.com/developer/msbuild/2003" Namespace="System.Xml.Linq" />
|
|
|
|
<Code xmlns="http://schemas.microsoft.com/developer/msbuild/2003" Type="Fragment" Language="cs"><![CDATA[ |
|
|
|
var config = XElement.Load(Config.ItemSpec).Elements("Costura").FirstOrDefault(); |
|
|
|
|
|
|
|
if (config == null) return true; |
|
|
|
|
|
|
|
var excludedAssemblies = new List<string>(); |
|
|
|
var attribute = config.Attribute("ExcludeAssemblies"); |
|
|
|
if (attribute != null) |
|
|
|
foreach (var item in attribute.Value.Split('|').Select(x => x.Trim()).Where(x => x != string.Empty)) |
|
|
|
excludedAssemblies.Add(item); |
|
|
|
var element = config.Element("ExcludeAssemblies"); |
|
|
|
if (element != null) |
|
|
|
foreach (var item in element.Value.Split(new[] { "\r\n", "\n" }, StringSplitOptions.RemoveEmptyEntries).Select(x => x.Trim()).Where(x => x != string.Empty)) |
|
|
|
excludedAssemblies.Add(item); |
|
|
|
|
|
|
|
var filesToCleanup = Files.Select(f => f.ItemSpec).Where(f => !excludedAssemblies.Contains(Path.GetFileNameWithoutExtension(f), StringComparer.InvariantCultureIgnoreCase)); |
|
|
|
|
|
|
|
foreach (var item in filesToCleanup) |
|
|
|
File.Delete(item); |
|
|
|
<Code xmlns="http://schemas.microsoft.com/developer/msbuild/2003" Type="Fragment" Language="cs"><![CDATA[
|
|
|
|
var config = XElement.Load(Config.ItemSpec).Elements("Costura").FirstOrDefault();
|
|
|
|
|
|
|
|
if (config == null) return true;
|
|
|
|
|
|
|
|
var excludedAssemblies = new List<string>();
|
|
|
|
var attribute = config.Attribute("ExcludeAssemblies");
|
|
|
|
if (attribute != null)
|
|
|
|
foreach (var item in attribute.Value.Split('|').Select(x => x.Trim()).Where(x => x != string.Empty))
|
|
|
|
excludedAssemblies.Add(item);
|
|
|
|
var element = config.Element("ExcludeAssemblies");
|
|
|
|
if (element != null)
|
|
|
|
foreach (var item in element.Value.Split(new[] { "\r\n", "\n" }, StringSplitOptions.RemoveEmptyEntries).Select(x => x.Trim()).Where(x => x != string.Empty))
|
|
|
|
excludedAssemblies.Add(item);
|
|
|
|
|
|
|
|
var filesToCleanup = Files.Select(f => f.ItemSpec).Where(f => !excludedAssemblies.Contains(Path.GetFileNameWithoutExtension(f), StringComparer.InvariantCultureIgnoreCase));
|
|
|
|
|
|
|
|
foreach (var item in filesToCleanup)
|
|
|
|
File.Delete(item);
|
|
|
|
]]></Code>
|
|
|
|
</Task>
|
|
|
|
</UsingTask>
|
|
|
@@ -389,11 +389,11 @@ foreach (var item in filesToCleanup) |
|
|
|
</PropertyGroup>
|
|
|
|
<Error Condition="!Exists('3rd\Fody.1.29.4\build\dotnet\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '3rd\Fody.1.29.4\build\dotnet\Fody.targets'))" />
|
|
|
|
</Target>
|
|
|
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
|
|
|
Other similar extension points exist, see Microsoft.Common.targets. |
|
|
|
<Target Name="BeforeBuild"> |
|
|
|
</Target> |
|
|
|
<Target Name="AfterBuild"> |
|
|
|
</Target> |
|
|
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
|
|
Other similar extension points exist, see Microsoft.Common.targets.
|
|
|
|
<Target Name="BeforeBuild">
|
|
|
|
</Target>
|
|
|
|
<Target Name="AfterBuild">
|
|
|
|
</Target>
|
|
|
|
-->
|
|
|
|
</Project> |