私はガイドhereを読んだことがありますが、私はビルドXML文書ファイルに私の生成を追加する方法を見つけることができませんでした。古い.nuspec
ファイル<file></file>
タグのファイルを参照していましたが、それに相当するファイルが見つかりませんでした。VS2017を使用してNuGet 4.x +パッケージにドキュメントを追加する方法は?
私が理解したものから、私がビルド上のXMLファイルを作成する場合、それは自動的にNuGetに追加されなければならないようだが、私はそれをダウンロードした後、私のnugetを調べるとき、これは、XMLドキュメントなしではまだです。
私は間違っていますか?
EDIT 1
<PropertyGroup>
<VersionPrefix>1.0.5</VersionPrefix>
<PackageVersion>1.0.5</PackageVersion>
<TargetFrameworks>netcoreapp1.1;net461</TargetFrameworks>
<AssemblyName>SBTech.ApiUtils</AssemblyName>
<PackageId>SBTech.ApiUtils</PackageId>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath>bin\Debug\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Dev|AnyCPU'">
<OutputPath>bin\Dev\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Staging|AnyCPU'">
<OutputPath>bin\Staging\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<OutputPath>bin\Release\</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net461|AnyCPU'">
<DocumentationFile>bin\Debug\net461\SBTech.ApiUtils.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net461|AnyCPU'">
<DocumentationFile>bin\Release\net461\SBTech.ApiUtils.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Staging|net461|AnyCPU'">
<DocumentationFile>bin\Staging\net461\SBTech.ApiUtils.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Dev|net461|AnyCPU'">
<DocumentationFile>bin\Dev\net461\SBTech.ApiUtils.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netcoreapp1.1|AnyCPU'">
<DocumentationFile>bin\Debug\netcoreapp1.1\SBTech.ApiUtils.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netcoreapp1.1|AnyCPU'">
<DocumentationFile>bin\Release\netcoreapp1.1\SBTech.ApiUtils.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Staging|netcoreapp1.1|AnyCPU'">
<DocumentationFile>bin\Staging\netcoreapp1.1\SBTech.ApiUtils.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Dev|netcoreapp1.1|AnyCPU'">
<DocumentationFile>bin\Dev\netcoreapp1.1\SBTech.ApiUtils.xml</DocumentationFile>
</PropertyGroup>
しかし、これは私がクライアントのプロジェクトXML文書内からパッケージのコードを点検するときは、VSに示されていない、私のパッケージにxmlファイルを追加します
ためas part of this pull requestを修正しましたか?あなたはマーティンの答えから有益な情報を得ることができますか?私はそれが私の側でうまく動作することをテストします。あなたが望むものでない場合は、この問題に関する詳細情報をお知らせください。 –
確かに私のVSは15.2バージョンでしたが、それをアップグレードした後、問題は残っていました。プロジェクトファイルで私の質問を編集しています。 @ Leo-MSFT – kuskmen