MSBuild GenerateDeploymentManifest任务

时间:2011-04-08 08:25:02

标签: .net wpf .net-4.0 msbuild

我目前正在尝试为.NET 4 WPF项目编写构建脚本。我最近在尝试运行部署清单时遇到了错误,错误的详细信息可以在下面找到。

据我所知,这是一个与框架v4相关的问题,Microsoft.Build.Tasks.v4.0中的GenerateDeploymentManifest任务不会生成带有清单的元素。这有解决方案吗?是否有更新此任务以确保清单具有此元素?

我必须提到我已经尝试将属性TargetFrameworkVersion和TargetFrameworkVersionMoniker包含在任务中,但没有运气。

ERROR DETAILS
    Following errors were detected during this operation.
    * [2011/04/08 10:09:59 AM] System.Deployment.Application.InvalidDeploymentException (ManifestSemanticValidation)
        - Deployment manifest is not semantically valid.
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.PlatformDetector.VerifyPlatformDependencies(AssemblyManifest appManifest, AssemblyManifest deployManifest, String tempDir)
            at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
            at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
            at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
            at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
        --- Inner Exception ---
        System.Deployment.Application.InvalidDeploymentException (InvalidManifest)
        - Deployment manifest is missing <compatibleFrameworks>.
        - Source: 
        - Stack trace:

0 个答案:

没有答案