Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7529293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:37:24+00:00 2026-05-30T04:37:24+00:00

Nuget package added postbuild event: if not exist $(TargetDir)x86 md $(TargetDir)x86 xcopy /s /y

  • 0

Nuget package added postbuild event:

if not exist "$(TargetDir)x86" md "$(TargetDir)x86"
xcopy /s /y "$(SolutionDir)packages\SqlServerCompact.4.0.8482.1\NativeBinaries\x86\*.*" "$(TargetDir)x86"
if not exist "$(TargetDir)amd64" md "$(TargetDir)amd64"
xcopy /s /y "$(SolutionDir)packages\SqlServerCompact.4.0.8482.1\NativeBinaries\amd64\*.*" "$(TargetDir)amd64"

and it works when i just compile.
When i want to publish – these directories(x86, amd64) do not appear in Application Files. I dont want to copy existing files, because nuget package will be updated and existing copies will change, so that i will have to remember that i need to re-add them. How to deploy these exact directories(embedded sqlce needs exactly such structure) with files via clickonce and make that process not dependent on package version?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T04:37:25+00:00Added an answer on May 30, 2026 at 4:37 am

    Found answer here:
    https://stackoverflow.com/a/2514027/47672
    In my case the code was:

    <ItemGroup>
        <Content Include="$(TargetDir)x86\*.dll">
          <Link>x86\%(FileName)%(Extension)</Link>
          <Visible>false</Visible>
        </Content>
    </ItemGroup>
    <ItemGroup>
        <Content Include="$(TargetDir)x86\Microsoft.VC90.CRT\*.dll">
          <Link>x86\Microsoft.VC90.CRT\%(FileName)%(Extension)</Link>
          <Visible>false</Visible>
        </Content>
    </ItemGroup>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I added the FacebookWebMvc Nuget package to my MVC 3 Web Application project and
I just added the Ninject.MVC3 nuget package (v2.2.2.0) to my ASP.NET MVC 3 app.
I'm creating my first nuget package. I added a dependency with a version that
I've just noticed that I've added a package via nuget and it's marked the
NuGet newbie question- I saw repositories.config being added in NuGet packages folder. Can anyone
I added the recent nuget package restore feature to a solution using 'Enable NuGet
NuGet package restore does not play well with the PostSharp package, this is of
I am creating NuGet package and for that I have created Nuspec manifest file.
I'm attempting to install a nuget package which has incorrectly specified one of it's
I go into the Package Manager -> Package Sources options and remove the NuGet

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.