将命名空间放入代码中
namespace YamatoDaiwaCS_Extensions {
// Your classes and code here
}
namespace YamatoDaiwaCS_Extensions.Japanese {
// Your classes and code here
}
Ensure that the AssemblyInfo.cs
file in your project contains the correct assembly information, including the assembly name.
[assembly: AssemblyTitle("YourPackage")]
[assembly: AssemblyDescription("Description of YourPackage")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("YourCompany")]
[assembly: AssemblyProduct("YourPackage")]
[assembly: AssemblyCopyright("Copyright © YourCompany")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
更新您的项目文件(.csproj)(正常)
<RootNamespace>YamatoDaiwaCS_Extensions</RootNamespace>
更新您的项目文件(.csproj)(日语)
<RootNamespace>YamatoDaiwaCS_Extensions.Japanese</RootNamespace>
Package Configuration
确保生成的.nupkg文件包含正确的部件信息和 struct .您可以使用诸如NuGet Package Explorer之类的工具判断NuGet包的内容.
Last Step
在验证并设置了适当的配置之后,您可以使用Nuget pack命令创建NuGet包.命名空间信息将是已编译代码和项目 struct 所固有的.
nuget pack YamatoDaiwaCS_Extensions.csproj
nuget pack Japanase.csproj