title: How to avoid my own nuget package overwrite the target project web.config and global.aspx file when they install my package
body: <p>I was created one nuget package using following step.</p>
  
  <ol>
  <li>First I created one Asp.net Mvc application</li>
  <li>The I created spec file using nuget spec command</li>
  <li>Then I edited $id$,$version$,$author$,$description$ ect..</li>
  <li>Then I created package using following command.</li>
  <li>nuget pack myproject.csproj -Build -Properties Configuration=Release</li>
  <li>It was created one myproject.1.0.0.0.nupkg</li>
  <li>Then I copy the file And past into C:\LocalNuGetFeed\myproject.1.0.0.0.nupkg</li>
  <li>I already configure the local repository in my VS</li>
  </ol>
  
  <p><strong>My problem is</strong> 
  When I install this package from any other project it ask following question.
  But as per my requirement I don't want to move this file to target project.  Suppose user give <strong>y</strong> the it overwrite the target project file because of it i face lot reference problem. </p>
  
  <pre><code>**File Conflict
  File 'Web.config' already exists in project 'CRM'. Do you want to overwrite it?
  [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "N"): 
  
  File Conflict
  File 'Global.asax' already exists in project 'CRM'. Do you want to overwrite it?
  [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "N"):** 
  </code></pre>
  
  <p>But in my package I don't want to move this above two file from package to target project.</p>
  
  <p>Is any way to avoid transform Global.asax and Web.config move from package to target project.</p>
  
  <p>In my .nuspec file I added following line</p>
  
  <pre><code>&lt;files&gt;  
       &lt;file src="Web.config" target = "" exclude="Web.config"/&gt; 
      &lt;file src="*.asax" target = "" exclude="*.asax"/&gt;
      &lt;file src="Content\*.css" target="Content\" /&gt;
      &lt;file src="Scripts\*.js" target="Content\Scripts\" /&gt;
    &lt;/files&gt;
  </code></pre>
  
  <p>But it include the <strong>web.config</strong> file AND <strong>Global.aspx</strong> file in Content folder My resultant package look like bellow  </p>
  
  <pre><code>myproject.1.0.0.0
        &gt;&gt; Content
             ....css
             &gt;&gt;Script
                  ..Js file
             web.config
             Global.asax  
  </code></pre>