Git Product home page Git Product logo

Comments (3)

sayedihashimi avatar sayedihashimi commented on June 18, 2024

@evgit could you provide specific repro steps that I could follow? I want to make sure that I'm investigate the particular issue you are having.

from package-web.

evgit avatar evgit commented on June 18, 2024

run msbuild from command name with /P:PackageLocation, our command line is:

C:/Windows/Microsoft.NET/Framework/v4.0.30319/msbuild.exe" "MyProject.csproj" /T:Package /P:Configuration=Release /P:PackageLocation="C:/MyOtherFolder/NewProjectName.zip" /v:m /nr:false /P:warn=0 /nologo

It is a fairly large C# .Net Web Application, we do have our own custom .wpp,targets file which we use to set file access control on a few folders. I guess there is a potential for conflict there.

I can't track down why, but at some point after raising the issue, it seems to be moving the publish script to the right location now.

Contents of our wpp.targets file:

    <?xml version="1.0" encoding="UTF-8"?>
    <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
      <ItemGroup>
        <CustomDirAcl Include="App_Data">
           <AclAccess>Write,Modify</AclAccess>
      </CustomDirAcl>
      <CustomDirAcl Include="Logs">
         <AclAccess>Write,Modify</AclAccess>
      </CustomDirAcl>
      <CustomDirAcl Include="Uploads">
         <AclAccess>Write,Modify</AclAccess>
      </CustomDirAcl>
      <CustomDirAcl Include="images">
         <AclAccess>Write,Modify</AclAccess>
      </CustomDirAcl>
   </ItemGroup>
   <Target Name="SetupCustomAcls" AfterTargets="AddIisSettingAndFileContentsToSourceManifest">
      <ItemGroup>
         <MsDeploySourceManifest Include="setAcl">
            <Path>$(_MSDeployDirPath_FullPath)\%(CustomDirAcl.Identity)</Path>
            <setAclAccess>%(CustomDirAcl.AclAccess)</setAclAccess>
            <setAclResourceType>Directory</setAclResourceType>
            <AdditionalProviderSettings>setAclResourceType;setAclAccess</AdditionalProviderSettings>
         </MsDeploySourceManifest>
      </ItemGroup>
   </Target>
   <Target Name="DeclareCustomParameters" AfterTargets="AddIisAndContentDeclareParametersItems">
      <ItemGroup>
         <MsDeployDeclareParameters Include="SetAcl %(CustomDirAcl.Identity)">
            <Kind>ProviderPath</Kind>
            <Scope>setAcl</Scope>
            <Match>^$(_EscapeRegEx_MSDeployDirPath)\\@(CustomDirAcl)$</Match>
            <DefaultValue>{$(_MsDeployParameterNameForContentPath)}/@(CustomDirAcl)</DefaultValue>
            <Value>$(_DestinationContentPath)/@(CustomDirAcl)</Value>
            <Tags>Hidden</Tags>
            <Priority>$(VsSetAclPriority)</Priority>
            <ExcludeFromSetParameter>True</ExcludeFromSetParameter>
         </MsDeployDeclareParameters>
      </ItemGroup>
   </Target>
</Project>

from package-web.

sayedihashimi avatar sayedihashimi commented on June 18, 2024

I just tried it and did not have any issues, the .ps1 file was generated in the correct location. I will close this item, but if you do get to a good set of repro steps please re-open this.

On an alternate note you should add /t:"Build;Package" to ensure that the Build target is also invoked.

from package-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.