Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nuget包 #62

Open
Tracked by #73
Akarinnnnn opened this issue Nov 14, 2020 · 2 comments
Open
Tracked by #73

nuget包 #62

Akarinnnnn opened this issue Nov 14, 2020 · 2 comments

Comments

@Akarinnnnn
Copy link

现在的安装方法是一个个文件复制进vs的目录里边,万一要更新,删错了文件会很麻烦
反正现在的vs都支持nuget C++包了,不如干脆点做个nuget包,打包的配置文件和targets文件我已经写好了

ege.nuspec

<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
  <metadata>
    <id>ege</id><!--包的id-->
    <version>20.08.0</version><!--版本号,主版本号.副版本号.修订号-->
    <authors>misakamm mysaid</authors><!--作者列表-->
    <requireLicenseAcceptance>true</requireLicenseAcceptance><!--接受许可才能安装-->
    <license type="expression">LGPL-2.1-or-later</license><!--许可表达式-->
    <projectUrl>https://github.com/wysaid/xege</projectUrl>
    <repository type="git" url="https://github.com/wysaid/xege"/>
    <description>ege</description><!--描述-->
    <tags>gui graphics native c++ cpp v142</tags><!--标签-->
  </metadata>
  <files>
    <file src="ege.targets" target="build/ege.targets" />
    <file src="x64\" target="build/native/x64"/>
	<file src="x86\" target="build/native/x86"/>
	<file src="ege\" target="build/native/include/ege"/>
  </files>
</package>

ege.targets

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
	<ItemDefinitionGroup>
		<ClCompile>
			<AdditionalIncludeDirectories>$(msbuildthisfiledirectory)native\include\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
		</ClCompile>
		<Link>
			<AdditionalDependencies>$(msbuildthisfiledirectory)native\$(platformShortName)\*.lib;%(AdditionalDependencies)</AdditionalDependencies>
		</Link>
	</ItemDefinitionGroup>
</Project>

打包时,ege文件这样放就行

  • ege_nuget
    • include
    • x64
    • x86
    • nuspec
    • targets
@chirsz-ever
Copy link
Collaborator

感谢您的反馈!
开发组在下个版本发布时会考虑以 Nuget 包形式发布。

@wysaid
Copy link
Owner

wysaid commented Jan 13, 2022

不知不觉一年过去了... 大家有时间可以搞搞... @chirsz-ever @royqh1979 @TheBadZhang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants