dotnet / wpf

WPF is a .NET Core UI framework for building Windows desktop applications.
MIT License
7.08k stars 1.17k forks source link

Can't compile Microsoft.Dotnet.Wpf.sln #2968

Closed dmitrybv closed 2 years ago

dmitrybv commented 4 years ago

============= Severity Code Description Project Project Rank Path File Line Column Category Suppression State Error Intellisense Xml sources not found: IntellisenseXmlDir=C:\Users\BDV\Source\Repos\dotnet-wpf.tools\native\bin\dotnet-api-docs_netcoreapp3.0\0.0.0.2_intellisense\netcore-3.0\ WindowsBase-ref 2 C:\Users\BDV\Source\Repos\dotnet-wpf\eng\WpfArcadeSdk\tools C:\Users\BDV\Source\Repos\dotnet-wpf\eng\WpfArcadeSdk\tools\ReferenceAssembly.targets 53 5

=========== Severity Code Description Project Project Rank Path File Line Column Category Suppression State Error Perl is not found: PerlCommand="C:\Users\BDV\Source\Repos\dotnet-wpf.tools\native\bin\strawberry-perl\5.28.1.1-1\portableshell.bat" WindowsBase 3 C:\Users\BDV\Source\Repos\dotnet-wpf\src\Microsoft.DotNet.Wpf\src\WindowsBase C:\Users\BDV\Source\Repos\dotnet-wpf\src\Microsoft.DotNet.Wpf\src\WindowsBase\WindowsBase.csproj 373 5

=========== Severity Code Description Project Project Rank Path File Line Column Category Suppression State Error ResolvedImplementationAssembly 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\PresentationBuildTasks\Debug\netcoreapp2.1\PresentationBuildTasks.dll' did not exist. PresentationBuildTasks 15 C:\Users\BDV\Source\Repos\dotnet-wpf\eng\WpfArcadeSdk\tools C:\Users\BDV\Source\Repos\dotnet-wpf\eng\WpfArcadeSdk\tools\ApiCompat.targets 133 5

=========== Severity Code Description Project Project Rank Path File Line Column Category Suppression State Error ResolvedImplementationAssembly item must be specified to run API compat. UIAutomationClientSideProviders 15 C:\Users\BDV\Source\Repos\dotnet-wpf\eng\WpfArcadeSdk\tools C:\Users\BDV\Source\Repos\dotnet-wpf\eng\WpfArcadeSdk\tools\ApiCompat.targets 188 5

=========== Severity Code Description Project Project Rank Path File Line Column Category Suppression State Error MSB4057 The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project. C:\Users\BDV.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets resources 14 C:\Users\BDV.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools C:\Users\BDV.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets 51 11
sshot-97

Actual behavior:

Expected behavior:

Minimal repro:

lindexi commented 4 years ago

@dmitrybv Could you use commline to run the build.cmd file?

  .\build.cmd -pack -ci -configuration Release -prepareMachine /p:Platform=x86

I think your device do not download and install all the build tool.

dmitrybv commented 4 years ago

.\ Build.cmd file execution is stuck on the next line.

C:\Users\BDV\source\repos\dotnet-wpf>.\build.cmd -pack -ci -configuration Release -prepareMachine /p:Platform=x86
##vso[task.setvariable isSecret=False;variable=Artifacts;isOutput=True]C:\Users\BDV\source\repos\dotnet-wpf\artifacts
##vso[task.setvariable isSecret=False;variable=Artifacts.Toolset;isOutput=True]C:\Users\BDV\source\repos\dotnet-wpf\artifacts\toolset
##vso[task.setvariable isSecret=False;variable=Artifacts.Log;isOutput=True]C:\Users\BDV\source\repos\dotnet-wpf\artifacts\log\Release
##vso[task.setvariable isSecret=False;variable=TEMP;isOutput=True]C:\Users\BDV\source\repos\dotnet-wpf\artifacts\tmp\Release
##vso[task.setvariable isSecret=False;variable=TMP;isOutput=True]C:\Users\BDV\source\repos\dotnet-wpf\artifacts\tmp\Release
Processing C:\Users\BDV\source\repos\dotnet-wpf\global.json
strawberry-perl was not found in .
File 'C:\Users\BDV\.netcoreeng\native\temp\net-framework-48-ref-assemblies-0.0.0.1-win64-x64.zip' already exists, skipping download
Exception calling "ExtractToDirectory" with "2" argument(s): "End of Central Directory record could not be found."
System.Management.Automation.MethodInvocationException: Exception calling "ExtractToDirectory" with "2" argument(s): "End of Central Directory record could not be found." ---> System.IO.InvalidDataExc
eption: End of Central Directory record could not be found.
   at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()
   at System.IO.Compression.ZipArchive.Init(Stream stream, ZipArchiveMode mode, Boolean leaveOpen)
   at System.IO.Compression.ZipFile.Open(String archiveFileName, ZipArchiveMode mode, Encoding entryNameEncoding)
   at System.IO.Compression.ZipFile.ExtractToDirectory(String sourceArchiveFileName, String destinationDirectoryName, Encoding entryNameEncoding)
   at CallSite.Target(Closure , CallSite , Type , String , String )
   --- End of inner exception stack trace ---
   at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
   at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
weltkante commented 4 years ago

if download was interrupted or otherwise failed you have to delete these cached download files manually

dmitrybv commented 4 years ago

I completely deleted local WPF folder and cloned the https://github.com/dotnet/wpf.git project from scratch.

In VisualStudio it wrote "The repositore was cloned successfully."

Then I opened Microsoft.Dotnet.Wpf solution and tried to rebuild. And got the same list of errors.

Here is the output:

1>------ Build started: Project: DirectWriteForwarder, Configuration: Debug Win32 ------
2>------ Build started: Project: System.Printing (Managed\System.Printing), Configuration: Debug Win32 ------
3>------ Build started: Project: resources, Configuration: Debug Win32 ------
4>------ Build started: Project: TabLib, Configuration: Debug Win32 ------
5>------ Build started: Project: api, Configuration: Debug Win32 ------
6>------ Build started: Project: av, Configuration: Debug Win32 ------
7>------ Build started: Project: common (Unmanaged\WpfGfx\core\common), Configuration: Debug Win32 ------
8>------ Build started: Project: DynamicCall, Configuration: Debug Win32 ------
1>Restore completed in 44,14 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\DirectWriteForwarder\Debug\netcoreapp5.0\CppCliSupport\CppClrSupport_DirectWriteForwarder.csproj.
2>Restore completed in 46,33 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\System.Printing\Debug\netcoreapp5.0\CppCliSupport\CppClrSupport_System.Printing.csproj.
3>Restore completed in 68,85 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\resources\Win32\Debug\CppSupport\CppSupport_resources.csproj.
5>Restore completed in 63,71 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\api\Win32\Debug\CppSupport\CppSupport_api.csproj.
4>Restore completed in 82,41 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\TabLib\Win32\Debug\CppSupport\CppSupport_TabLib.csproj.
6>Restore completed in 74,11 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\av\Win32\Debug\CppSupport\CppSupport_av.csproj.
7>Restore completed in 69,5 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\common\Win32\Debug\CppSupport\CppSupport_common.csproj.
8>Restore completed in 68,35 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\DynamicCall\Win32\Debug\CppSupport\CppSupport_DynamicCall.csproj.
4>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
4>Done building project "TabLib.vcxproj" -- FAILED.
3>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
9>------ Build started: Project: effects, Configuration: Debug Win32 ------
3>Done building project "resources.vcxproj" -- FAILED.
5>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
5>Done building project "api.vcxproj" -- FAILED.
10>------ Build started: Project: scanop, Configuration: Debug Win32 ------
11>------ Build started: Project: shared (Unmanaged\WpfGfx\common\shared), Configuration: Debug Win32 ------
6>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
6>Done building project "av.vcxproj" -- FAILED.
12>------ Build started: Project: util, Configuration: Debug Win32 ------
7>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
7>Done building project "common.vcxproj" -- FAILED.
13>------ Build started: Project: Collector, Configuration: Debug Win32 ------
8>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
8>Done building project "DynamicCall.vcxproj" -- FAILED.
14>------ Build started: Project: Compiler, Configuration: Debug Win32 ------
11>Restore completed in 1,06 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\shared\Win32\Debug\CppSupport\CppSupport_shared.csproj.
9>Restore completed in 0,82 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\effects\Win32\Debug\CppSupport\CppSupport_effects.csproj.
10>Restore completed in 1,64 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\scanop\Win32\Debug\CppSupport\CppSupport_scanop.csproj.
11>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
11>Done building project "shared.vcxproj" -- FAILED.
15>------ Build started: Project: PixelShader, Configuration: Debug Win32 ------
9>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
9>Done building project "effects.vcxproj" -- FAILED.
16>------ Build started: Project: Platform, Configuration: Debug Win32 ------
10>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
10>Done building project "scanop.vcxproj" -- FAILED.
17>------ Build started: Project: Geometry, Configuration: Debug Win32 ------
13>Restore completed in 1,3 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\Collector\Win32\Debug\CppSupport\CppSupport_Collector.csproj.
13>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
13>Done building project "Collector.vcxproj" -- FAILED.
18>------ Build started: Project: glyph, Configuration: Debug Win32 ------
1>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
1>Done building project "DirectWriteForwarder.vcxproj" -- FAILED.
19>------ Build started: Project: PresentationFramework-System.Printing-api-cycle, Configuration: Debug Any CPU ------
15>Restore completed in 1,05 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\PixelShader\Win32\Debug\CppSupport\CppSupport_PixelShader.csproj.
17>Restore completed in 0,86 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\Geometry\Win32\Debug\CppSupport\CppSupport_Geometry.csproj.
12>Restore completed in 1,2 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\util\Win32\Debug\CppSupport\CppSupport_util.csproj.
14>Restore completed in 0,94 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\Compiler\Win32\Debug\CppSupport\CppSupport_Compiler.csproj.
16>Restore completed in 0,8 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\Platform\Win32\Debug\CppSupport\CppSupport_Platform.csproj.
15>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
15>Done building project "PixelShader.vcxproj" -- FAILED.
17>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
14>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
14>Done building project "Compiler.vcxproj" -- FAILED.
16>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
16>Done building project "Platform.vcxproj" -- FAILED.
12>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
12>Done building project "util.vcxproj" -- FAILED.
17>Done building project "Geometry.vcxproj" -- FAILED.
20>------ Build started: Project: PresentationFramework-ReachFramework-impl-cycle, Configuration: Debug Any CPU ------
21>------ Build started: Project: PresentationUI-PresentationFramework-impl-cycle, Configuration: Debug Any CPU ------
22>------ Build started: Project: hw, Configuration: Debug Win32 ------
23>------ Build started: Project: meta, Configuration: Debug Win32 ------
18>Restore completed in 0,82 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\glyph\Win32\Debug\CppSupport\CppSupport_glyph.csproj.
18>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
18>Done building project "glyph.vcxproj" -- FAILED.
2>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
2>Done building project "System.Printing.vcxproj" -- FAILED.
24>------ Build started: Project: sw, Configuration: Debug Win32 ------
25>------ Build started: Project: targets, Configuration: Debug Win32 ------
26>------ Build started: Project: uce, Configuration: Debug Win32 ------
25>Restore completed in 1,1 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\targets\Win32\Debug\CppSupport\CppSupport_targets.csproj.
26>Restore completed in 0,98 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\uce\Win32\Debug\CppSupport\CppSupport_uce.csproj.
22>Restore completed in 1,25 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\hw\Win32\Debug\CppSupport\CppSupport_hw.csproj.
24>Restore completed in 0,74 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\sw\Win32\Debug\CppSupport\CppSupport_sw.csproj.
23>Restore completed in 0,79 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\meta\Win32\Debug\CppSupport\CppSupport_meta.csproj.
25>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
25>Done building project "targets.vcxproj" -- FAILED.
24>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
27>------ Build started: Project: DebugLib, Configuration: Debug Win32 ------
24>Done building project "sw.vcxproj" -- FAILED.
26>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
26>Done building project "uce.vcxproj" -- FAILED.
22>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
22>Done building project "hw.vcxproj" -- FAILED.
23>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
23>Done building project "meta.vcxproj" -- FAILED.
28>------ Build started: Project: DllUtil, Configuration: Debug Win32 ------
29>------ Build started: Project: UtilLib, Configuration: Debug Win32 ------
30>------ Build started: Project: OSVersionHelper, Configuration: Debug Win32 ------
31>------ Build started: Project: Microsoft.DotNet.Wpf.GitHub (packaging\Microsoft.DotNet.Wpf.GitHub\Microsoft.DotNet.Wpf.GitHub), Configuration: Debug Any CPU ------
27>Restore completed in 0,85 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\DebugLib\Win32\Debug\CppSupport\CppSupport_DebugLib.csproj.
30>Restore completed in 0,79 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\OSVersionHelper\Win32\Debug\CppSupport\CppSupport_OSVersionHelper.csproj.
30>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
30>Done building project "OSVersionHelper.vcxproj" -- FAILED.
27>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
27>Done building project "DebugLib.vcxproj" -- FAILED.
28>Restore completed in 1,97 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\DllUtil\Win32\Debug\CppSupport\CppSupport_DllUtil.csproj.
32>------ Build started: Project: D3DCompiler, Configuration: Debug Win32 ------
33>------ Build started: Project: VCRuntime, Configuration: Debug Win32 ------
33>Restore completed in 0,87 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\VCRuntime\Win32\Debug\CppSupport\CppSupport_VCRuntime.csproj.
33>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
33>Done building project "VCRuntime.vcxproj" -- FAILED.
32>Restore completed in 0,84 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\D3DCompiler\Win32\Debug\CppSupport\CppSupport_D3DCompiler.csproj.
34>------ Build started: Project: Microsoft.DotNet.Wpf.GitHub.ArchNeutral, Configuration: Debug Any CPU ------
32>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
32>Done building project "D3DCompiler.vcxproj" -- FAILED.
35>------ Build started: Project: PenImc (Unmanaged\PenImc\PenImc), Configuration: Debug Win32 ------
31>Microsoft.DotNet.Wpf.GitHub ->
36>------ Build started: Project: Microsoft.DotNet.Arcade.Wpf.Sdk.ArchNeutral, Configuration: Debug Any CPU ------
28>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
28>Done building project "DllUtil.vcxproj" -- FAILED.
19>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\PresentationCore\Debug\netcoreapp5.0\PresentationCore.dll' could not be found
19>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\System.Xaml\Debug\netcoreapp5.0\System.Xaml.dll' could not be found
19>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\WindowsBase\Debug\netcoreapp5.0\WindowsBase.dll' could not be found
19>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\UIAutomationProvider\Debug\netcoreapp5.0\UIAutomationProvider.dll' could not be found
19>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\UIAutomationTypes\Debug\netcoreapp5.0\UIAutomationTypes.dll' could not be found
19>Done building project "PresentationFramework-System.Printing-api-cycle.csproj" -- FAILED.
21>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\PresentationCore\Debug\netcoreapp5.0\PresentationCore.dll' could not be found
21>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\System.Xaml\Debug\netcoreapp5.0\System.Xaml.dll' could not be found
21>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\WindowsBase\Debug\netcoreapp5.0\WindowsBase.dll' could not be found
21>Done building project "PresentationUI-PresentationFramework-impl-cycle.csproj" -- FAILED.
35>Restore completed in 0,84 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\PenImc\Win32\Debug\CppSupport\CppSupport_PenImc.csproj.
37>------ Build started: Project: Microsoft.DotNet.Wpf.ProjectTemplates.ArchNeutral, Configuration: Debug Any CPU ------
38>------ Build started: Project: Microsoft.NET.Sdk.WindowsDesktop.ArchNeutral, Configuration: Debug Any CPU ------
39>------ Build started: Project: PresentationFramework-System.Printing-impl-cycle, Configuration: Debug Any CPU ------
20>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\PresentationCore\Debug\netcoreapp5.0\PresentationCore.dll' could not be found
20>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\UIAutomationProvider\Debug\netcoreapp5.0\UIAutomationProvider.dll' could not be found
20>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\UIAutomationTypes\Debug\netcoreapp5.0\UIAutomationTypes.dll' could not be found
20>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\System.Xaml\Debug\netcoreapp5.0\System.Xaml.dll' could not be found
20>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\WindowsBase\Debug\netcoreapp5.0\WindowsBase.dll' could not be found
20>Done building project "PresentationFramework-ReachFramework-impl-cycle.csproj" -- FAILED.
40>------ Build started: Project: PresentationFramework-SystemCore, Configuration: Debug Any CPU ------
34>Microsoft.DotNet.Wpf.GitHub.ArchNeutral ->
41>------ Build started: Project: PresentationFramework-SystemData, Configuration: Debug Any CPU ------
36>Microsoft.DotNet.Arcade.Wpf.Sdk.ArchNeutral ->
37>Microsoft.DotNet.Wpf.ProjectTemplates.ArchNeutral ->
38>Microsoft.NET.Sdk.WindowsDesktop.ArchNeutral ->
29>Restore completed in 0,81 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\UtilLib\Win32\Debug\CppSupport\CppSupport_UtilLib.csproj.
29>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
29>Done building project "UtilLib.vcxproj" -- FAILED.
42>------ Build started: Project: PresentationFramework-SystemDrawing, Configuration: Debug Any CPU ------
43>------ Build started: Project: PresentationFramework-SystemXml, Configuration: Debug Any CPU ------
44>------ Build started: Project: wpfgfx (Unmanaged\WpfGfx\core\wpfgfx), Configuration: Debug Win32 ------
45>------ Build started: Project: PresentationFramework-SystemXmlLinq, Configuration: Debug Any CPU ------
44>Restore completed in 1,12 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\wpfgfx\Win32\Debug\CppSupport\CppSupport_wpfgfx.csproj.
39>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\PresentationCore\Debug\netcoreapp5.0\PresentationCore.dll' could not be found
39>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\System.Xaml\Debug\netcoreapp5.0\System.Xaml.dll' could not be found
39>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\WindowsBase\Debug\netcoreapp5.0\WindowsBase.dll' could not be found
39>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\UIAutomationProvider\Debug\netcoreapp5.0\UIAutomationProvider.dll' could not be found
39>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\UIAutomationTypes\Debug\netcoreapp5.0\UIAutomationTypes.dll' could not be found
39>Done building project "PresentationFramework-System.Printing-impl-cycle.csproj" -- FAILED.
46>------ Build started: Project: PresentationNative, Configuration: Debug Win32 ------
40>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\PresentationFramework\Debug\netcoreapp5.0\PresentationFramework.dll' could not be found
40>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\WindowsBase\Debug\netcoreapp5.0\WindowsBase.dll' could not be found
40>Done building project "PresentationFramework-SystemCore.csproj" -- FAILED.
46>Restore completed in 0,8 ms for C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\obj\PresentationNative\Win32\Debug\CppSupport\CppSupport_PresentationNative.csproj.
46>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
46>Done building project "PresentationNative.vcxproj" -- FAILED.
43>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\System.Xaml\Debug\netcoreapp5.0\System.Xaml.dll' could not be found
43>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\PresentationFramework\Debug\netcoreapp5.0\PresentationFramework.dll' could not be found
43>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\WindowsBase\Debug\netcoreapp5.0\WindowsBase.dll' could not be found
43>Done building project "PresentationFramework-SystemXml.csproj" -- FAILED.
41>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\PresentationFramework\Debug\netcoreapp5.0\PresentationFramework.dll' could not be found
41>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\WindowsBase\Debug\netcoreapp5.0\WindowsBase.dll' could not be found
41>Done building project "PresentationFramework-SystemData.csproj" -- FAILED.
45>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\WindowsBase\Debug\netcoreapp5.0\WindowsBase.dll' could not be found
45>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\PresentationFramework\Debug\netcoreapp5.0\PresentationFramework.dll' could not be found
45>Done building project "PresentationFramework-SystemXmlLinq.csproj" -- FAILED.
42>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\PresentationCore\Debug\netcoreapp5.0\PresentationCore.dll' could not be found
42>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\PresentationFramework\Debug\netcoreapp5.0\PresentationFramework.dll' could not be found
42>CSC : error CS0006: Metadata file 'C:\Users\BDV\Source\Repos\dotnet-wpf\artifacts\bin\WindowsBase\Debug\netcoreapp5.0\WindowsBase.dll' could not be found
42>Done building project "PresentationFramework-SystemDrawing.csproj" -- FAILED.
35>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
35>Done building project "PenImc.vcxproj" -- FAILED.
44>C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets(51,11): error MSB4057: The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project.  C:\Users\BDV\.nuget\packages\microsoft.dotnet.arcade.sdk\5.0.0-beta.20228.4\tools\Version.targets
44>Done building project "wpfgfx.vcxproj" -- FAILED.
========== Build: 5 succeeded, 41 failed, 46 up-to-date, 0 skipped ==========
weltkante commented 4 years ago

I completely deleted local WPF folder and cloned the https://github.com/dotnet/wpf.git project from scratch.

Some of the cached folders are in your user user profile, outside the cloned repo, check the comment I linked above it has the paths you need to clear. If it still doesn't work with the paths I mentioned you have to look closely into the errors in your build script output to identify other cache paths that may have not been cleared yet.

Also you need to execute the build script to download various things, you can't just open the solution and expect it to build, the first build must be done from console.

dmitrybv commented 4 years ago

I removed C:\Users\BDV.netcoreeng\native\bin and C:\Users\BDV.netcoreeng\native\temp

But the project Microsoft.Dotnet.Wpf.sln is still not compiling.

So I tried to run C:\Users\BDV\source\repos\dotnet-wpf\build.cmd. After an hour of work, it gave out information about one error.

...
  PresentationCore-ref -> C:\Users\BDV\source\repos\dotnet-wpf\artifacts\bin\PresentationCore-ref\Debug\netcoreapp5.0\PresentationCore.dll
  UIAutomationClient -> C:\Users\BDV\source\repos\dotnet-wpf\artifacts\bin\UIAutomationClient\Debug\netcoreapp5.0\UIAutomationClient.dll
  UIAutomationClientSideProviders-ref -> C:\Users\BDV\source\repos\dotnet-wpf\artifacts\bin\UIAutomationClientSideProviders-ref\Debug\netcoreapp5.0\UIAutomationClientSideProviders.dll
  wpfgfx.def
  Generating Code...
  .NETCoreApp,Version=v5.0.AssemblyAttributes.cpp
  UIAutomationClientSideProviders -> C:\Users\BDV\source\repos\dotnet-wpf\artifacts\bin\UIAutomationClientSideProviders\Debug\netcoreapp5.0\UIAutomationClientSideProviders.dll
     Creating library C:\Users\BDV\source\repos\dotnet-wpf\artifacts\bin\wpfgfx\Win32\Debug\wpfgfx_cor3.lib and object C:\Users\BDV\source\repos\dotnet-wpf\artifacts\bin\wpfgfx\Win32\Debug\wpfgfx_cor
  3.exp
LINK : fatal error LNK1104: cannot open file 'MSVCURTD_netcore.LIB' [C:\Users\BDV\source\repos\dotnet-wpf\src\Microsoft.DotNet.Wpf\src\DirectWriteForwarder\DirectWriteForwarder.vcxproj]
  wpfgfx.vcxproj -> C:\Users\BDV\source\repos\dotnet-wpf\artifacts\bin\wpfgfx\Win32\Debug\wpfgfx_cor3.dll
  wpfgfx.vcxproj -> C:\Users\BDV\source\repos\dotnet-wpf\artifacts\bin\wpfgfx\Win32\Debug\wpfgfx_cor3.pdb (Partial PDB)

Build FAILED.

LINK : fatal error LNK1104: cannot open file 'MSVCURTD_netcore.LIB' [C:\Users\BDV\source\repos\dotnet-wpf\src\Microsoft.DotNet.Wpf\src\DirectWriteForwarder\DirectWriteForwarder.vcxproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:23.04
Build failed.
See log: C:\Users\BDV\source\repos\dotnet-wpf\artifacts\log\Debug\x86\Build.binlog
weltkante commented 4 years ago

But the project Microsoft.Dotnet.Wpf.sln is still not compiling.

Well yes, like I said, you have to compile once on console with build.cmd first, it downloads stuff you are otherwise missing. The WPF github repo only contains the WPF source, not the .NET Core stuff it is compiled against. It probably also downloads some additional tooling not part of VS.

If you compiled successfully once with build.cmd you can usually edit and recompile inside VS.

it gave out information about one error. cannot open file 'MSVCURTD_netcore.LIB'

This sounds like you might be missing some "universal C/C++ runtime" component in your VS installation which WPF links against. I don't know which you need though. I see "Windows Universal CRT SDK" and "Windows Universal C-Runtime" in my VS installer being checked.

dmitrybv commented 4 years ago

It was "C++/CLI support for v142 build tool (14.25)" that helped.

Now build.cmd gives new errors:

....
  PrintSystemAssemblyInfo.cpp
  PrintSystemJobInfo.cpp
  LegacyDevice.cpp
  GDIExporter.cpp
  XpsDeviceSimulatingInteropPrinterHandler.cpp
  Generating Code...
  Compiling...
  XpsCompatiblePrinter.cpp
  XPSDocumentWriter.cpp
  XpsPrintJobStream.cpp
  XpsPrintStream.cpp
  PremiumPrintStream.cpp
  PrintJobSettings.cpp
  PrintDocumentImageableArea.cpp
  InteropAttributeValueDictionary.cpp
  Generating Code...
  .NETCoreApp,Version=v5.0.AssemblyAttributes.cpp
  LINK : /LTCG specified but no code generation required; remove /LTCG from the link command line to improve linker performance
  System.Printing.vcxproj -> C:\Users\BDV\source\repos\dotnet-wpf\artifacts\bin\System.Printing\Debug\netcoreapp5.0\System.Printing.dll

Build FAILED.

System\Windows\Controls\Grid.cs(309,16): error CS0246: The type or namespace name 'ColumnDefinitionCollection' could not be found (are you missing a using directive or an assembly
 reference?) [C:\Users\BDV\source\repos\dotnet-wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\PresentationFramework.csproj]
System\Windows\Controls\Grid.cs(324,16): error CS0246: The type or namespace name 'RowDefinitionCollection' could not be found (are you missing a using directive or an assembly re
ference?) [C:\Users\BDV\source\repos\dotnet-wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\PresentationFramework.csproj]
System\Windows\Controls\Grid.cs(3347,22): error CS0246: The type or namespace name 'ColumnDefinitionCollection' could not be found (are you missing a using directive or an assembl
y reference?) [C:\Users\BDV\source\repos\dotnet-wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\PresentationFramework.csproj]
System\Windows\Controls\Grid.cs(3348,22): error CS0246: The type or namespace name 'RowDefinitionCollection' could not be found (are you missing a using directive or an assembly r
eference?) [C:\Users\BDV\source\repos\dotnet-wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\PresentationFramework.csproj]
System\Windows\Controls\Grid.cs(4151,21): error CS0246: The type or namespace name 'ColumnDefinitionCollection' could not be found (are you missing a using directive or an assembl
y reference?) [C:\Users\BDV\source\repos\dotnet-wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\PresentationFramework.csproj]
System\Windows\Controls\Grid.cs(4152,21): error CS0246: The type or namespace name 'RowDefinitionCollection' could not be found (are you missing a using directive or an assembly r
eference?) [C:\Users\BDV\source\repos\dotnet-wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\PresentationFramework.csproj]
    0 Warning(s)
    6 Error(s)

Time Elapsed 00:00:56.25
Build failed.
See log: C:\Users\BDV\source\repos\dotnet-wpf\artifacts\log\Debug\x86\Build.binlog

C:\Users\BDV\source\repos\dotnet-wpf>                                                                                                                                              
weltkante commented 4 years ago

That message looks like #748, the workaround is in that discussion. Its apparently a bug in the WPF code generator that sometimes happens on local builds.

dmitrybv commented 4 years ago

Yes, it helped, thank you. Deleted "artifacts" folder and build.cmd again.

Build succeeded.
    0 Warning(s)
    0 Error(s)

How can I use these debug assemblies in a test WPF application? When I create new "WPF App (.NET Core)" App I have "Microsoft.NETCore.App.Ref" and "Microsoft.WindowsDesktop.App.Ref" items in Dependencies\Framework.

weltkante commented 4 years ago

Never did this but here are some ideas:

If you just want to test a bugfix or something you could make a standalone publish and replace the DLLs in the output with your custom build.

If you want to actually compile against your build its going to be more complex, WPF is more than just a bunch of DLLs, its part of the .NET Core Desktop SDK (built in a different repo) so I assume you probably cannot consume WPF standalone, at least not with the usual convenience of VS XAML integration.

You could try modding a prebuilt SDK (say a nightly build) by replacing the DLLs in the SDK, don't know if that would work, just an idea.

If you don't need VS integration you probably could create a Console project and reference your WPF DLLs directly, but you'd have to do some msbuild scripting to manually include the XAML build integration. If you are lucky this is as easy as manually including the right msbuild files.

If you want to build a whole SDK yourself then thats out of scope for this repo, building the SDK is done in one of the other repos. Also VS integration is not open source so if you divert too far you will lose that.

dmitrybv commented 4 years ago

Actually, I want to debug through the FrameworkElement and UIElement classes to understand why the ArrangeOverride method in my control is called so often.

Visual Studio Enable .NET Framework source stepping always uses optimized assemblies, so I can't view local variables when I step through the FrameworkElement and UIElement source codes.

I thought that using https://github.com/dotnet/wpf.git project, I can compile WPF assemblies in debug mode and fully debug FrameworkElement and UIElement source codes to understand how ArrangeOverride is called for parents and children.

lindexi commented 4 years ago

@dmitrybv I recommend you to use dnspy.

And I wrote a Chinese blog to tell my friends how to compile the WPF open source repo with Github action: Google translate

dmitrybv commented 4 years ago

Thanks lindexi, I can’t say yet how much it will help me solve the problem - Full debugging of WPF source codes.

How about creating a special version of the repository that would contain the WPF Source + Empty WPF Application. WPF Sandbox. So the developer could modify Application for the necessary task and debug the code at the WPF Source level.

fabiant3 commented 4 years ago

@lindexi , @weltkante thank you for helping here. @ryalanms will try to update the build docs as time permits to include the C++CLI requirements.

vatsan-madhavan commented 4 years ago

See Required Workloads in https://github.com/dotnet/wpf/blob/master/Documentation/developer-guide.md

vatsan-madhavan commented 4 years ago

How about creating a special version of the repository that would contain the WPF Source + Empty WPF Application.

Getting the DRT’s/tests to build (again) could achieve something like that.

https://github.com/dotnet/wpf/issues/3132

usernamedd commented 4 years ago

"Windows Universal CRT SDK" and "Windows Universal C-Runtime" should be installed

usernamedd commented 4 years ago

Actually, I want to debug through the FrameworkElement and UIElement classes to understand why the ArrangeOverride method in my control is called so often.

Visual Studio Enable .NET Framework source stepping always uses optimized assemblies, so I can't view local variables when I step through the FrameworkElement and UIElement source codes.

I thought that using https://github.com/dotnet/wpf.git project, I can compile WPF assemblies in debug mode and fully debug FrameworkElement and UIElement source codes to understand how ArrangeOverride is called for parents and children.

I have the same purpose with you , just debugging and dig deeply into WPF

snehansh commented 4 years ago

i am facing issue compilation errors in Microsoft.Dotnet.Wpf.sln.

i forked and cloned the repo and then ran the build command .\build.cmd -pack -ci -configuration Release -prepareMachine /p:Platform=x86

the build passed and then opened the solution in Visual Studio and I get errors. I have attached the build logs as a txt file for brevity. Appreciate any help in resolving the issue.

build.logs.txt

ryalanms commented 3 years ago

WPF must be built from the CLI.

lindexi commented 3 years ago

@ryalanms How about merging #4909 ?

lindexi commented 3 years ago

I successfully built it in VisualStudio by merged #4909 . Thank you @kant2002

kant2002 commented 2 years ago

Seems to be this issue can be closed after https://github.com/dotnet/wpf/pull/4909. Please open new issue, if some problems will be present.