Questions tagged [buildaction]

36 questions
1
vote
2 answers

Queries appear to work, but don't actually affect Access database

I've added an access db to my project as a datasource. So I get the automatically generated tableadapters class and therefore, access to the table adapter instance which includes the connection string. I'm using this to open a connection to my db so…
1
vote
1 answer

How do you change the BuildAction of a C# project file using an enumeration in Powershell?

I found this question and this answer on how to set the BuildAction (using Powershell) of a file in a C# Project. Basically, get the specified item, then set the Value of the "BuildAction": $item = $project.ProjectItems | where-object {$_.Name -eq…
myermian
  • 31,823
  • 24
  • 123
  • 215
1
vote
1 answer

Setting the Build Action for a folder in VS for a Win 8.1 app

In previous Windows 8 /8.1 projects, any images that I have added to a folder inside the Assets folder is automatically set to "Content" in the Build Action. As a result, the images render when the project is built. But our latest project seems to…
Daisy
  • 387
  • 2
  • 13
1
vote
2 answers

Set Default Build Action for image files or files in general

I'm using Xamarin Studio. Is it possible to set the default build action for custom files or image files? I'm developing an app that uses A LOT of PNG images. BundleResource is set by default for every image I import into the project. I noticed…
LampShade
  • 2,675
  • 5
  • 30
  • 60
0
votes
2 answers

Build Action for large set of images?

I'm in Visual Studio 2008 and I have a project that loads lots of images. I want the images to be deployed to the local instance of the software running. The trouble is that I tried using the images as a resource, but there are apparently too…
Austin
  • 834
  • 1
  • 10
  • 21
0
votes
6 answers

Custom Namespace on .NET web app

So I wrote some custom classes and put them all in a namespace, call it "Sphere". On my aspx.cs codebehind file, I have "using Sphere;" written. I know that this works because it's always worked until I copied this project to a new folder. Also,…
Matt
0
votes
0 answers

.Net Maui Including large file in project

I am trying to include a large file in my project but it doesn't let me. If set the Build Action to "MauiAsset" I get the following error: "APT2000 filemap E 08-18 15:25:19 23420 8832 MapViewOfFile(0, 3487748096) failed with error 8 "filemap E…
0
votes
1 answer

How to flatten Nuget package contentFiles?

Nuget package issues - buildAction, copyToOutput, flatten are ignored Package project (ThisProject.vbproj)- .Net Standard Library 2.0, .nuspec file:
Dimm
  • 1
  • 2
0
votes
1 answer

Visual Studio 2017 web deploy: wait for custom pre-build action finish

I want to use a web deploy to publish my ASP.Net Web API project along with Angular app. Angular app build is running in pre-build action, I'm using CustommCollectFiles to include \dist folder in publish, but because it's not waiting for finishing…
Andrey
  • 65
  • 1
  • 8
0
votes
1 answer

Change BuildAction to None in VSIX

So I am currently working on an extension and I want to change the Build Action of a specific ProjectItem to None. What I tried I noticed that the ProjectItem had a Properties property which contains the following KeyValuePair wher the key is…
Twenty
  • 5,234
  • 4
  • 32
  • 67
0
votes
0 answers

WPF cannot set Build Action for added file

my app is WPF (VS 2017). I want to add an image to the project and I need to use a relative path, in order to have that included in the app when it is published. (There was a similar question here and I would be happy if the answers would work for…
rlinner
  • 51
  • 5
0
votes
0 answers

C# files Build Action = Content and Copy to Output = Copy Always being copied on Build but deleted on Run

I have some files setup to copy to the output directory on build. When I do a build the files are copied as expected. If I check the build log I can see the file being moves from the specific project it lives in to the web project bin folder. …
Josh
  • 1,648
  • 8
  • 27
  • 58
0
votes
1 answer

What does it mean that a DLL is flagged as "incorrectly specified as a file" in my C# project?

I get this warning in a C# project: Assembly 'bin\DAL05.dll' is incorrectly specified as a file. The project does reference DAL05, which has these values: Description = "Data Access Layer for VS2005" Version = v2.0.50727 Also, the project's bin…
0
votes
1 answer

Load&Check ResourceDictionary Uri from EmbeddedResource in WPF

I need to load my ResourceDictionary from some assemblies at runtime. First i set BuildAction of the ResourceDictionary with Page, and use the code to build the uri. var uri = new Uri(string.Format(@"/{0};component\Resources\MyResource.xaml", …
Ivan
  • 81
  • 2
  • 11
0
votes
1 answer

A way to config the Build Action for NHibernate mapping .hbm.xml file?

Is there a way to configure the Build Action for an NHibernate mapping .hbm.xml file from within the NHibernate mapping .hbm.xml file itself or at the very least another configuration xml file? As much as I appreciate many of Microsoft Visual Studio…
crazyTech
  • 1,379
  • 3
  • 32
  • 67