C#, .NET 2.0
I have an ASP.NET website in a solution, with 2 other projects (used as library references). When I build (debug or release) in Visual Studio, everything works fine. However, building with MSBuild fails.
This build had been working (it's actually invoked via a nAnt task). The only thing that has changed is that I have a...
I've set up my simple project in VS2008 to use a click-once installer. I've specified that the ClickOnce manifests should be signed by our comapny's pfx file. When I set this up in Visual Studio it asked for the password for the pfx file, which I gladly supplied. Everything works fine when I build and publish from within Visual Studio. I...
Hi,
Does anyone know of an SFTP task for msbuild? We'd like to automate our deployments to production, but for security reasons we don't allow SMB file-share access from our dev/test/build environment to production.
Right now, developers deploy code by manually uploading the files using FileZilla, over an SFTP connection. This is pre...
I am trying to automate publishing a project having many solutions in cc.net. I am using msbuild which in turn calls a aspnetcompiler xml file. Problem is my directory contains many solutions and when I run aspnetcompiler it gives me the following error.
errorASPCONFIG: It is an error to use a section registered as allowDefinition='Mach...
We have a Team City Build Server running and want to compile a Visual C++ project. So far this would be easy, since I've setup our Windows Build Agent with the Windows SDK, but we don't have a solution / project file.
The project files are instead created with CMake. CMake seems to be a little bit dumb (can't generate Solution when Visu...
Getting following errors after trying to publish using aspnet_compiler
errorASPPARSE: Circular file references are not allowed.
errorASPPARSE: Unknown server tag 'uc2:FAQ'.
errorASPPARSE: Could not load type 'CompoundControls.BBar'.
errorASPPARSE: Could not load type 'CompoundControls.PPIndicator'.
errorASPPARSE: Unknown server tag 'm:C...
Recently I've changed our team build project file from:
<SolutionToBuild Include="$(SolutionRoot)/OurSolution.sln">
to
<SolutionToBuild Include="$(SolutionRoot)/**/*.csproj">
This was necessary because we have many projects which are not contained in the solution file, and for our purposes it is not feasible to just add the project...
After MSbuild has built my solution (with an asp.net website), and the webdeployment project has built and put the website in the directory _PublishedWebsites:
c:\mybuilds\buildName\Daily_20090519.3\Release_PublishedWebsites\MyWebsite.
How do I copy this to the fixed directory where IIS points to for the test website?
I have found loa...
I have a script that will convert a text file into a resource file, so that I can have multiple language support by having text files for different languages converted into different resources. Once I run the script to get the resx file, I then have to run a custom build tool (as described here:Link to Code Project) in order to create t...
I have a build process that does the following:
Runs TLBIMP on a number (say 10) of COM DLLs (a named group of TaskItems). This is my "Import" target that uses the Exec task.
Runs ILDASM on the 10 interop assemblies. This is my "Disassemble" target that uses the Exec task.
Runs a custom task to take all of the 10 IL files at the same t...
I'd be interested to hear how people handle conditional markup, specifically in their masterpages between release and debug builds.
The particular scenario this is applicable to is handling concatenated js and css files. I'm currently using the .Net port of YUI compress to produce a single site.css and site.js from a large collection of...
I am trying to find information on using reflection within a MSBuild task.
I need a way of iterating through the methods of a class contained with a website, at build time. Is this possible? Is MSBuild the best tool to use? Is this an unreasonable requirement, I can't seem to find any documentation on the subject?
Any help would be muc...
I'm producing builds using MSBuild, and build configurations set up in the dproj on the command line. It's slightly disconcerting that the size of the executables thus produced are different (not by much, but still!) to what an IDE build produces. Any ideas why? I would have thought the same compiler is used?
...
I work on a project with 4 other devs. We currently use Visual Studio to build our solution with some Pre and Post build events.
I would like to move to a more powerful build system such as Nant or MsBuild.
What are the pros and cons of the two approaches?
How is the developer experience using Nant/MsBuild? Is it easy to debug the app...
I would like to simulate "Publish..." menu item from WCF Service project (or ASP.NET Web Application or...) context menu in Visual Studio 2008. I do not have a need to publish it to a running IIS instance, just to put the web content together with bin folder on some local dir. Is there any way to add it in post build events, or as a MSBu...
Could someone translate this, into a syntax that uses the built in variables?
\\myserver\builds\mybuild\Daily_20090525.1\Release\_PublishedWebsites\myWebsite
it should be something like:
$(DropLocation)\mybuild\$(?...)\Release\_PublishedWebsites\myWebsite
...
In a visual studio C# project, it is possible to add references to COM libraries. Visual Studio will then use tlbimp.exe to generate the interop assembly when building the project. The reference looks like this in the .csproj file:
<ItemGroup>
<COMReference Include="TDAPIOLELib">
<Guid>{F645BD06-E1B4-4E6A-82FB-E97D027FD456}<...
In Visual Studio when I linked a file from one project to the next, I get the following error when an attempt is made to load the linked resource. This only happens when the linked file is within a folder(s).
Error:
Message="'pack://application:,,,/projectName ;component/ResourceDictionary .xaml' value cannot be assigned to property '...
We have a C# ASP.NET 3.5 project with VS 2008.
We also have a VB6 DLL that we call via Interop (yuck...I know).
We use a Web Deployment project with MsBuild and run a batch file to build the project on a build machine.
My question is:
Is there a way to modify the MSBuild project to have the VB6 DLL and interop files created and moved...
I'm writing an MSBuild task to upgrade a database (full source here) and encountered an error/by design feature I don't know how to deal with. Basically, if I declare:
public int? TargetVersion
{
[DebuggerStepThrough]
get { return targetVersion; }
[DebuggerStepThrough]
set { targetVersion = value; }
}
and then attempt ...