How can we help you today? How can we help you today?
littlerk
I can share how my team obfuscates multiple assemblies in parallel (we have nine .saproj files). We create a Microsoft.Build.Traversal ( https://github.com/microsoft/MSBuildSdks/blob/main/src/Traversal/README.md ) project named something like Obfuscatable.dirs.proj, which has ProjectReferences to all the projects that need obfuscation. The traversal project contains a target modeled on the Microsoft.Build.Traversal SDK's standard targets for building/testing entire groups of projects:   <Target Name="OurObfuscationTraversalTarget">     <MSBuild Projects="@(ProjectReference)"              Targets="OurObfuscationTarget"              BuildInParallel="true"              Properties="%(ProjectReference.SetConfiguration); %(ProjectReference.SetPlatform); %(ProjectReference.SetTargetFramework)"              SkipNonexistentProjects="$(SkipNonexistentProjects)"              SkipNonexistentTargets="$(SkipNonexistentTargets)"              StopOnFirstFailure="$(StopOnFirstFailure)"              ContinueOnError="$([MSBuild]::ValueOrDefault('$(TestContinueOnError)', '$(ContinueOnError)'))" />   </Target> Then for the individual projects, we define a "OurObfuscationTarget" target, which uses the task <SmartAssembly ProjectFile="$(AssemblyName).saproj" />, and is configured to know when an obfuscation target is up-to-date an can be skipped by MSBuild. Parallel obfuscation is then performed by calling: dotnet msbuild -t:OurObfuscationTraversalTarget Obfuscatable.dirs.proj This is generally much faster than obfuscating each project one-by-one. Hope that helps! / comments
I can share how my team obfuscates multiple assemblies in parallel (we have nine .saproj files).We create a Microsoft.Build.Traversal ( https://github.com/microsoft/MSBuildSdks/blob/main/src/Traver...
0 votes
Version 8.3 with support for net8.0 was released yesterday. However, there is not yet a corresponding version of the RedGate.SmartAssembly.Installer Nuget package for CI support. / comments
Version 8.3 with support for net8.0 was released yesterday. However, there is not yet a corresponding version of the RedGate.SmartAssembly.Installer Nuget package for CI support.
0 votes