我有這樣定義的Visual Studio 2015年Powershell的工具項目:PowerShell的工具模塊項目構建工作不正常
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>6CAFC0C6-A428-4d30-A9F9-700E829FEA51</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>MyApplication</RootNamespace>
<AssemblyName>MyApplication</AssemblyName>
<Name>PS.TEST</Name>
<DebugArguments>
</DebugArguments>
<Author />
<CompanyName />
<Copyright />
<Description />
<Version>1.0.0.1</Version>
<Guid>29a8500a-c449-43f5-b9ba-610546db8cc2</Guid>
<FormatsToProcess />
<FunctionsToProcess />
<ModuleList>
</ModuleList>
<ModuleToProcess />
<NestedModules />
<TypesToProcess />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Compile Include="PS-TEST.psd1" />
<Compile Include="PS-TEST.psm1" />
<Compile Include="Tools\Release.ps1" />
</ItemGroup>
<ItemGroup>
<Folder Include="Files\" />
<Folder Include="Tools\" />
<Folder Include="Public\" />
<Folder Include="Private\" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Target Name="CoreCompile" />
<Target Name="Build">
<Exec Command="Powershell.exe Tools\Release.ps1 $(version)" />
</Target>
</Project>
當我打造整體解決方案「構建」不執行任務的執行命令。爲什麼?
當我建立這個與的MSBuild控制檯應用程序,它成功並執行「構建」任務exec命令,在Visual Studio 2015年社區不顯示這個項目不過「Build命令」當我右鍵單擊解決方案項目節點探險家。如何啓用此功能?
我已經添加了節點<Target Name="CoreCompile" />
,但沒有效果 - 該命令仍未在用戶界面中顯示。 XML中是否還有某些東西缺失?