-
Notifications
You must be signed in to change notification settings - Fork 200
【新手】下载源代码并运行起来
HeBianGu edited this page Aug 7, 2023
·
5 revisions
Welcome to the WPF-ControlBase wiki!
https://github.com/HeBianGu/WPF-ControlBase.git
下载并解压
Directory.Build.Props
<Project>
<PropertyGroup>
<UseWPF>true</UseWPF>
<!--<TargetFrameworks>netcoreapp3.1;net45;net451;net452;net46;net461;net462;net47;net471;net472;net48;net5.0-windows;net6.0-windows</TargetFrameworks>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>-->
<TargetFrameworks>net45;net7.0-windows</TargetFrameworks>
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
<LangVersion>9.0</LangVersion>
<Version>5.0.0</Version>
<FileVersion>5.0.0</FileVersion>
<AssemblyVersion>5.0.0</AssemblyVersion>
<Copyright>Copyright © HeBianGu 2019-2023</Copyright>
<Authors>HeBianGu </Authors>
<RepositoryUrl>https://github.com/HeBianGu</RepositoryUrl>
<PackageProjectUrl>https://github.com/HeBianGu</PackageProjectUrl>
</PropertyGroup>
</Project>
其中<TargetFrameworks>net45;net7.0-windows</TargetFrameworks>
是你要使用的.NET版本,目前代码中主要使用的是net7.0-windows,如果你要编译其他版本可以修改此位置并重新打开解决方案
解决方案路径
Solution\WPF-Controls - All.sln
是所有演示项目,示例项目的源代码(使用这个解决方案就可以)
注:项目文件比较多,等待VS加载完成后,依次生成项目
解决方案路径
Solution\WPF-Controls - App.sln
是所有演示项目的源代码
注:项目文件比较多,等待VS加载完成后,依次生成项目
解决方案路径
Solution\WPF-Controls - Demo.sln
是所有示例项目的源代码
注:项目文件比较多,等待VS加载完成后,依次生成项目
解决方案路径
Solution\WPF-Controls - Nuget.sln
是引用Nuget包的源代码
注:引用包出现黄色叹号无法还原可以用程序包管理控制台PM>执行Update-Package -Reinstall
还原所有Nuget包或手动移出重新添加,大概需要5分钟全部还原
引用顺序 Application->Data->System->Window->Control->Service->General->Base->Common
编译顺序与引用顺序相反,如果遇到编译问题可以从下到上依次编译查找问题