Questions tagged [buildmanager]

14 questions
35
votes
1 answer

Difference between AppDomain.GetAssemblies and BuildManager.GetReferencedAssemblies

Just wanted to know if there is any difference between the two, in the context of a fully trust asp.net mvc 2 application.
Herman
  • 3,004
  • 5
  • 37
  • 49
3
votes
4 answers

Help System.Web.Compilation.BuildManager find a type in a non-referenced assembly

I'm trying to write a plug-in system where assemblies can be dropped in a folder that ASP.NET has no knowledge about. This plug-in system works fine for ASP.NET MVC based assemblies, but for old-school WebForm assemblies (where the .aspx files…
2
votes
1 answer

WinDbg - looking at System.Web.Compilation.BuildManager's ResultCache

I'm debugging a memory leak. I cannot reproduce it, but when the program runs in specific circumstances I get a steady leak at about 60MB/hr. After several days, I take a dump when the heap is ~2GB and attach WinDbg. !heapdump –stat Shows there are…
Kenn
  • 2,379
  • 2
  • 29
  • 38
2
votes
1 answer

Build Failure while using buildManager with the latest microsoft.build.dll,v12.0.0.0

I updated the assembly reference in my build tool to use the latest versions(v12) of microsoft.build,microsoft.build.engine and microsoft.build.framework. But while compiling a project using the BuildManager(I use the Rebuild option for…
Deepu
  • 23
  • 3
2
votes
2 answers

.net console app lifecycle - working around a pre-start initialization error from BuildManager.GetReferencedAssemblies

I'm trying to iterate through the referenced assemblies in my console app. I have been doing this with BuildManager.GetReferencedAssemblies in other projects, but in my console application, I get an InvalidOperationException: This method cannot be…
Jeff D
  • 2,164
  • 2
  • 24
  • 39
1
vote
3 answers

JavaBuilder handling CoreException

I am working with Eclipse. All was right during I was developing, but I have two days with some strange problems. I have a subproject with several packages. I want to use some classes between packages and Eclipse recognizes the imports. However,…
Jose Hdez
  • 2,297
  • 7
  • 38
  • 52
1
vote
0 answers

BuildManager raising _CheckForInvalidConfigurationAndPlatform exception, but project builds fine in Visual Studio

I have a solution that currently compiles successfully in Visual Studio. I'm trying to get the solution to build via my build script, which is a C# console application that calls BuildManager.DefaultBuildManager.Build() to build the…
Brent
  • 209
  • 1
  • 11
1
vote
2 answers

Using BuildManager to build project causes a nuget package DLL to get locked

I am executing the following code: public static BuildResult Compile(string projectFilePath) { Nuget.NugetRestore(projectFilePath); ProjectCollection pc = new ProjectCollection(); Dictionary globalProperty = new…
Baaleos
  • 1,703
  • 12
  • 22
1
vote
1 answer

MSBuild using BuildManager cannot find bootstrapper path or SignTool.exe

I'm trying to automate builds using the MSBuild API - "BuildManager". The following code works fine for building solutions/projects but fails when it comes to publishing. The project publishes just fine when using the Visual Studio Publish page. …
MemphiZ
  • 766
  • 2
  • 13
  • 29
1
vote
0 answers

Building the solution from code using BuildManager.Build()

I've tried to create a build server app, that will get the source code and builds it into the executables and DLLs. My solution is quite big containing multiple projects depending on other projects from the same solution. Build in VS lasts in the…
Martin
  • 75
  • 3
  • 11
1
vote
0 answers

Build Manager Licenced Components

Good Afternoon I am having issues with the BuildManager class when building a project that contains a .licx file for a third party krypton component that I am using. My compiler is written in .Net 4.5 whilst the target build project is .Net 2.0. The…
Matt Gordon
  • 168
  • 1
  • 9
0
votes
1 answer

MSBuild not supporting multi thread solution build

I have a situation to build multiple solution using MSBUILD in multi threading, but during build, always few solution get failed. I have try to build each solution one by one , its working perfectly. but i have try to build 5 solution using multi…
0
votes
1 answer

BuildManager.Build Encounters First Chance Exceptions in SQL Server Data Tools Project

I am using the BuildManager.Build method to build a SQL Server Data Tools/Data-Tier Application Framework/Visual Studio Database Project. The same project, when built in the same configuration manually via Visual Studio builds without exception and…
0
votes
1 answer

Razor View for Pluggable Area not found

I am working on a pluggable ASP.NET MVC web app that discovers and registers areas at runtime from the Areas directory. My problem is that the view engine does not find any views from that area. I have one partial view located at…
tranceru1
  • 26
  • 1
  • 4