Open Symbai opened 3 years ago
For reference, #3132 is how my attempt went.
Can you either get the older System.Runtime or update the references to the newer version?
And from where do I get the required System.Runtime version?!
@Symbai I use github action to package the NuGet package, and then I download it from github action. Then I unzip the NuGet package and copy all the dll file to my folder, such as F:\temp\CustomWPF
folder. I add the code to my demo project.
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net5-windows</TargetFramework>
<UseWPF>true</UseWPF>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>dotnet-campus.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<Reference Include="f:\temp\CustomWPF\Accessibility.dll" />
<Reference Include="f:\temp\CustomWPF\DirectWriteForwarder.dll" />
<Reference Include="f:\temp\CustomWPF\Microsoft.VisualBasic.Forms.dll" />
<Reference Include="f:\temp\CustomWPF\Microsoft.Win32.Registry.AccessControl.dll" />
<Reference Include="f:\temp\CustomWPF\Microsoft.Win32.Registry.dll" />
<Reference Include="f:\temp\CustomWPF\Microsoft.Win32.SystemEvents.dll" />
<Reference Include="f:\temp\CustomWPF\PresentationCore.dll" />
<Reference Include="f:\temp\CustomWPF\PresentationFramework-SystemCore.dll" />
<Reference Include="f:\temp\CustomWPF\PresentationFramework-SystemData.dll" />
<Reference Include="f:\temp\CustomWPF\PresentationFramework-SystemDrawing.dll" />
<Reference Include="f:\temp\CustomWPF\PresentationFramework-SystemXml.dll" />
<Reference Include="f:\temp\CustomWPF\PresentationFramework-SystemXmlLinq.dll" />
<Reference Include="f:\temp\CustomWPF\PresentationFramework.Aero.dll" />
<Reference Include="f:\temp\CustomWPF\PresentationFramework.Aero2.dll" />
<Reference Include="f:\temp\CustomWPF\PresentationFramework.AeroLite.dll" />
<Reference Include="f:\temp\CustomWPF\PresentationFramework.Classic.dll" />
<Reference Include="f:\temp\CustomWPF\PresentationFramework.dll" />
<Reference Include="f:\temp\CustomWPF\PresentationFramework.Luna.dll" />
<Reference Include="f:\temp\CustomWPF\PresentationFramework.Royale.dll" />
<Reference Include="f:\temp\CustomWPF\PresentationUI.dll" />
<Reference Include="f:\temp\CustomWPF\ReachFramework.dll" />
<Reference Include="f:\temp\CustomWPF\System.CodeDom.dll" />
<Reference Include="f:\temp\CustomWPF\System.Configuration.ConfigurationManager.dll" />
<Reference Include="f:\temp\CustomWPF\System.Design.dll" />
<Reference Include="f:\temp\CustomWPF\System.Diagnostics.EventLog.dll" />
<Reference Include="f:\temp\CustomWPF\System.Diagnostics.PerformanceCounter.dll" />
<Reference Include="f:\temp\CustomWPF\System.DirectoryServices.dll" />
<Reference Include="f:\temp\CustomWPF\System.Drawing.Common.dll" />
<Reference Include="f:\temp\CustomWPF\System.Drawing.Design.dll" />
<Reference Include="f:\temp\CustomWPF\System.Drawing.dll" />
<Reference Include="f:\temp\CustomWPF\System.IO.FileSystem.AccessControl.dll" />
<Reference Include="f:\temp\CustomWPF\System.IO.Packaging.dll" />
<Reference Include="f:\temp\CustomWPF\System.IO.Pipes.AccessControl.dll" />
<Reference Include="f:\temp\CustomWPF\System.Printing.dll" />
<Reference Include="f:\temp\CustomWPF\System.Private.DataContractSerialization.dll" />
<Reference Include="f:\temp\CustomWPF\System.Private.Uri.dll" />
<Reference Include="f:\temp\CustomWPF\System.Private.Xml.dll" />
<Reference Include="f:\temp\CustomWPF\System.Private.Xml.Linq.dll" />
<Reference Include="f:\temp\CustomWPF\System.Resources.Extensions.dll" />
<Reference Include="f:\temp\CustomWPF\System.Security.AccessControl.dll" />
<Reference Include="f:\temp\CustomWPF\System.Security.Cryptography.Cng.dll" />
<Reference Include="f:\temp\CustomWPF\System.Security.Cryptography.OpenSsl.dll" />
<Reference Include="f:\temp\CustomWPF\System.Security.Cryptography.Pkcs.dll" />
<Reference Include="f:\temp\CustomWPF\System.Security.Cryptography.ProtectedData.dll" />
<Reference Include="f:\temp\CustomWPF\System.Security.Cryptography.Xml.dll" />
<Reference Include="f:\temp\CustomWPF\System.Security.Permissions.dll" />
<Reference Include="f:\temp\CustomWPF\System.Security.Principal.Windows.dll" />
<Reference Include="f:\temp\CustomWPF\System.Threading.AccessControl.dll" />
<Reference Include="f:\temp\CustomWPF\System.Windows.Controls.Ribbon.dll" />
<Reference Include="f:\temp\CustomWPF\System.Windows.Extensions.dll" />
<Reference Include="f:\temp\CustomWPF\System.Windows.Forms.Design.dll" />
<Reference Include="f:\temp\CustomWPF\System.Windows.Forms.Design.Editors.dll" />
<Reference Include="f:\temp\CustomWPF\System.Windows.Forms.dll" />
<Reference Include="f:\temp\CustomWPF\System.Windows.Forms.Primitives.dll" />
<Reference Include="f:\temp\CustomWPF\System.Windows.Input.Manipulations.dll" />
<Reference Include="f:\temp\CustomWPF\System.Windows.Presentation.dll" />
<Reference Include="f:\temp\CustomWPF\System.Xaml.dll" />
<Reference Include="f:\temp\CustomWPF\UIAutomationClient.dll" />
<Reference Include="f:\temp\CustomWPF\UIAutomationClientSideProviders.dll" />
<Reference Include="f:\temp\CustomWPF\UIAutomationProvider.dll" />
<Reference Include="f:\temp\CustomWPF\UIAutomationTypes.dll" />
<Reference Include="f:\temp\CustomWPF\WindowsBase.dll" />
<Reference Include="f:\temp\CustomWPF\WindowsFormsIntegration.dll" />
</ItemGroup>
</Project>
And I write a blog in Chinese to tell my friends how to do it, see Google translate Blog
But I think the best way is to store a demo project in this repo
Shouldn't we be able to just use the WpfRepo
, WpfConfig
and SelfContained
properties as suggested in the Developer Guide?
I think we can close this issues. Because we add the wpf-debug.targets file.
I've followed the guide and added the lines to my csproj file. I've changed the Wpfrootpath and fixed the Reference paths.
My API changes are recognized by VS. However I cannot build as I get the following errors:
Assembly XX with identity XY uses ZZ which has a higher version than referenced assembly ....