简体   繁体   English

Sharepoint工作流部署错误basepackagepath

[英]Sharepoint workflow deployment error basepackagepath

I'm getting this error while deploying a workflow in sharepoint 2010 我在sharepoint 2010中部署工作流时遇到此错误

Error occurred in deployment step 'Retract Solution': This required project property is not found or has a value of null or empty string: BasePackagePath 部署步骤“撤消解决方案”中出错:找不到此必需的项目属性,或者值为null或空字符串:BasePackagePath

Its building fine and I tried retract, it also succeeded. 它的建筑很好,我试图收回,它也成功了。

I am using visual studio to deploy. 我正在使用visual studio进行部署。

Can anyone tell me what has to be the value of the base path. 任何人都可以告诉我什么是基本路径的价值。

I found the problem it was due to permission i had to use the far admin account to deploy it. 我发现问题是由于权限我必须使用远管理员帐户来部署它。

This is the error "The "CompileWorkflowTask" task failed unexpectedly. System.NotSupportedException: The given path's format is not supported." 这是错误“The CompileWorkflowTask”任务意外失败.System.NotSupportedException:不支持给定路径的格式。

So after some search i came up with this link 所以经过一番搜索,我想出了这个链接

But it got built but showed the error in my question 但它已经构建但在我的问题中显示错误

But the first one is the error. 但第一个是错误。 And you need admin privileges to deploy it. 您需要管理员权限才能部署它。

You can add the BasePackagePath in your .user file that is in the same directory as your SharePoint project file. 您可以在.user文件中添加BasePackagePath,该文件与SharePoint项目文件位于同一目录中。

In my user file the following entries were missing. 在我的用户文件中,缺少以下条目。 After adding these properties below the siteurl I could deploy the project. 在siteurl下面添加这些属性后,我可以部署项目。 You can change this by using for instance notepad. 您可以使用例如记事本来更改此设置。

    <?xml version="1.0" encoding="utf-8"?>
    <Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
      <PropertyGroup>
        <SharePointSiteUrl>http://siteurl:9425/</SharePointSiteUrl>
        <ProjectView>ShowAllFiles</ProjectView>
        <BasePackagePath>bin\Debug</BasePackagePath>
        <LayoutPath>pkg\package</LayoutPath>
      </PropertyGroup>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM