Tools — Options — Projects and Solutions — Build and RunIn the list of MSBuild project buld output verbosity select Diagnostic . Now open the output windowView — Outputand collect the project and after a long wait at the very end of the huge log that the compiler issued, we see the following: Task Performance Summary: 0 ms Message 3 calls 0 ms WriteLinesToFile 2 calls 0 ms RemoveDuplicates 3 calls 0 ms FindAppConfigFile 1 calls 0 ms ConvertToAbsolutePath 1 calls 0 ms ReadLinesFromFile 2 calls 0 ms AssignTargetPath 5 calls 0 ms Delete 2 calls 0 ms MakeDir 2 calls 0 ms CreateProperty 1 calls 0 ms GetFrameworkPath 1 calls 10 ms ResolveAssemblyReference 1 calls 10 ms GetDeviceFrameworkPath 1 calls 20 ms AssignCulture 1 calls 30 ms Copy 6 calls 40 ms FindUnderPath 7 calls 60 ms ResolveComReference 1 calls 290 ms CreateCSharpManifestResourceName 1 calls 761 ms GenerateResource 1 calls 2804 ms Csc 1 calls 118073 ms PlatformVerificationTask 1 calls The last line is just some kind of quiet horror, right? We crack the Google and find the following . It turns out that the Platform Verification Task is a special procedure that checks whether the program that has just been compiled can run on all platforms that have the .NET Framework. In an implementation under one platform, there may be nothing that is present in the implementation under another.%windir%\Microsoft.NET\Framework\v2.0.50727\Microsoft.CompactFramework.Common.Targetsfor editing.%windir%\Microsoft.NET\Framework\v3.5\Microsoft.CompactFramework.Common.TargetsName="PlatformVerificationTask">and replace it withName="PlatformVerificationTask" Condition="'$(SkipPlatformVerification)' != 'true'">windows+break . Further— — —Variable nameSkipPlatformVerificationvaluetrueNow you need to restart the system, but without this, the environment variables are not updated.Source: https://habr.com/ru/post/41218/
All Articles