0
我們正在將JetBrains作爲IDE在Microsoft標準dotnet sdk之上進行測試驅動。沒有安裝Visual Studio。JetBrains車手不會執行帶有.targets文件的nuget軟件包
我們有一個nuget包,它實現了一個額外的構建步驟。它可以在VS Express中運行,在msbuild命令行上可以安裝VS Express,但不會在未安裝VS的Rider中運行。
我們缺少什麼?
這是NuGet包:
\Package.nuspec
\build\nugetPostbuild.targets
\script\createPackageAndUpload.cmd
的目標文件是這樣的:
<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="postbuildPackNuGetTarget" AfterTargets="Build">
<Message Importance="high" Text="Message from MyNuGetCustomTarget. Configuration: $(MSBuildThisFileDirectory)..\nuget_postbuild_script\createPackageAndUpload.cmd $(ProjectDir) $(ProjectFileName) $(ConfigurationName) $(TargetDir)" />
<Exec Command="$(MSBuildThisFileDirectory)..\nuget_postbuild_script\createPackageAndUpload.cmd $(ProjectDir) $(ProjectFileName) $(ConfigurationName) $(TargetDir)" />
</Target>
</Project>
該規範是這樣的:
<?xml version="1.0"?>
<package >
<metadata>
<id>nugetPostbuild</id>
<version>1.0.3</version>
<authors>thewindowsuser</authors>
<owners>thewindowsuser</owners>
<projectUrl>http://...</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>bla ...</description>
<releaseNotes>http://...</releaseNotes>
<copyright>Copyright ...</copyright>
<tags>some tags here</tags>
</metadata>
<files>
<file src="script\**" target="nuget_postbuild_script" />
<file src="build\**" target="build" />
</files>
</package>
我無法訪問該問題,它是否計劃安裝1.0? – thst
我改變了問題的可見性。是的,這絕對是計劃=) – xtmq