2015-05-29 102 views

回答

2

不,不可能。您必須將.VDPROJ重寫爲預構建步驟,或將MSI更新爲構建後步驟。工具集的許多限制之一

-1

是的,你可以這樣做,你只需要一個工具來更新項目定義文件** .vdproj。 以**的csproj如下面的例子: 項目定義文件像下面(你需要打開**的csproj用記事本什麼的文件):

<?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> 
    ....... 
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>` 

「V4.0」是目標字段進行替換,然後替換字段,然後觸發msbuild來構建您的項目,如「msbuild **。csproj」

+0

VDPROJ不使用MSBUILD。 –

+0

我想你誤解了這個問題,因爲csproj文件與msi版本無關。相反,編輯vdproj文件的方式可能會這樣做.. –

+0

錯誤的文件,但類似的方式。 – wherby

相關問題