-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nothing is getting excluded #7
Comments
Using the I had originally tried the |
Thanks, I'll investigate it. Can you tell me what version of Visual Studio are you using? |
I am using VS 2012. Its an Asp.Net MVC 4 project. I have .Net 4.5 installed. So it must be using the corresponding version of MS Build. |
Out of the box (via NuGet), this wasn't working for me either. I got it to work by using the "-Pre" release NuGet version:
and by adding <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>FileSystem</WebPublishMethod>
.....
<publishUrl>./CIBuild</publishUrl>
<DeleteExistingFiles>False</DeleteExistingFiles>
</PropertyGroup>
<Import Project="..\..\ls.pubignore.wpp.targets"/> <!-- MUST BE IMPORTED HERE -->
</Project> Otherwise, a straight |
tried waht @bchavez suggests but even then nothing gets ignored; VS2013. |
EDIT : Original message: I want to exclude a folder and it's content:
Tried: Then: Then: Nothing works... Any idea? Regards, |
Sorry for the delay. You should update to the latest which is Can you tell me if the issue continues using You shouldn't have to edit the .pubxml file to import the .wpp.targets file. In some cases _you may need to restart Visual Studio_. Usually Visual Studio will detect the .wpp.targets file and pick it up on the next publish but in some cases it may not. Try restarting VS to see if that helps. |
I'm using 1.0.6-beta in VS 2013.4 and having the same issue. If I start the line with a forward slash or backslash I can ignore a file from the root folder, for example: /publish.ignore But without the slash at the start, the file is deployed. Also, I'd like to prevent all files with a certain extension from being deployed, for all folders. This is how I attempted to do that for one file type: *.sprite But this isn't working. Is this wildcard syntax supported? |
I have an Asp.net MVC 4 web project. I installed
PublishIgnore 1.0.5
using Nuget. It created the.targets
and.ignore
files. I edited thepublish.ignore
file to exclude theApp_Readme\
folder. I then published the project to my desktop (ie, publish to a local folder using the FileSystem option). The publishing process deletes all existing files before publishing.The publish location contains the
App_Readme
folders and its files. Even the.targets
andpublish.ignore
files are present.My
publish.ignore
currently looks like thisThe text was updated successfully, but these errors were encountered: