Stop building application when error occurs - visual-web-developer

I want to stop building the application in visual web developer 2008 when a compilation error occurs.
Can anybody help me out?

There is a way to do it programmatically in Visual Studio 2005 / 2008.
http://www.ehow.com/how_5025041_automatically-visual-studio-build-error.html
Not sure about Visual Web Developer 2008.
Give it a go.
Note though, this will stop a solution build if a project errors. AFAIK You can't programatically stop a project build if an error occurs.

Related

Problems with save operation in Visual Studio VSIX custom editor and .Net 6.0 Web application projects

We have built a Visual Studio Extension (VSIX). It is a custom editor for editing a special file that contains definitions for the datamodel in our CMS.
We are porting our CMS to .Net 6.0 from .Net 4.8 ( framework -> core ), however we are struggling getting the editor to work in .Net 6.0 projects. It works fine in web applications written in .Net 4.8, but not in .Net 6.0 web application projects.
Whenever we click the save button in Visual Studio, we get a very general and non specific error message that says: "The operation could not be completed. Unspecified error"
We run the extension with source code in debug mode using the Visual Studio SDK, and there is no exception that is picked up by Visual Studio. ( We use one Visual Studio instance to start another instance of Visual Studio in debug mode, as normal with VSIX projects). Breakpoints etc. work, and we have activated all exceptions in the debugger. When we click save in Visual Studio projects, we get the error message before any method is called in our code. We do not even enter the "IVsPersistDocData2.SaveDocData" method of the "WindowPane" class. The plugin is written in C#. Apart from save, everything works fine. The editor loads fine and function as normal in both types of projects.
There must be some difference in the way the extension integrates with Visual Studio that differ between .Net4.8 projects and .Net6.0 projects. Of course, there are differences in file paths etc in these projects, but I do not see how this is the root of the problem as we do not even get to the stage where any method is called in our editor source code.
As a test I created a very simple extension with only the bare minimum to enable a WindowPane extension, and I get the same error message when saving in 6.0 projects
We created the first version of the plugin back in 2013, using templates from Microsoft and have been updating it for every new version of Visual Studio. There have been some changes in the documentation and projects templates for VSIX, but unfortunately, there is no longer any C# template for custom editors, only C++. (https://learn.microsoft.com/en-us/visualstudio/extensibility/walkthrough-creating-a-custom-editor?view=vs-2022) Pherhaps someone knows any workings examples of custom editors written in c#?
So, we are a little stuck, the error message does not give us any clue to what is wrong. I have not found any documentation that could explain differences in Net 4.8 and Net 6.0 web projects that could cause this.
Anyone had a similar problem? Or perhaps a clue to what is causing this.
(BTW, we are using the latest version of Visual Studio 2022 Community and Windows 11)
After opening a support incident with Microsoft, further investigation and live debugging pointed to problems with VisualStudio.ProjectSystem.VS.Implementation.Package.ProjectNode.SaveItem and a possible internal bug in Visual Studio.
A temporary workaround suggested by Microsoft support, was to add the definition of IPersistFileFormat to the WindowPane implementation. ( None of the methods needed to be implemented. )
This solved the problem for us. The definition of our working WindowPane is now:
public sealed class OntologyDesignerEditorPane : WindowPane, IVsPersistDocData2, IPersistFileFormat, IVsFileChangeEvents

VS Code - Biztalk Development

I'm hoping someone can help me with this. How do I go about using VS Code to develop on Biztalk 2016?
Let me explain further...
Currently, I have to install Biztalk Server on my PC. Then in Visual Studio a Biztalk project template will be available. I create a new project from this template and voila!
Is it possible to do something like this with VS Code?
Any guidance would be much appreciated.
VS Code is currently unsupported for BizTalk 2016 project files.

Deploy Acumatica Framework Tools fails

I am trying to Deploy Acumatica Framework Tools using the Framework Configuration Wizard and I getting the following error:
Exception occurred while installing resources.
Inner Exception:
Can't find the Visual Studio template items location.
I have Visual Studio 2017 Enterprise running on Windows 10 Pro. Both are up to date.
Any ideas on how to correct this. I’m going to the Acumatica Summit next week and need to do the T100 and T200 course.
Thanks
Tom
The wizard is likely looking for the VS2015 registry folder. Until installers are fixed to check in the VS2017 location I recommend you create the VS2015 registry folders with these 4 dummy string keys pointing to VS2017 folder.
The key values in the picture below point to the default VS2017 folders. I tested this workaround a couple months ago on a colleague computer and we experience no ill effects:
I faced the same problem, but I could not change my registry due to company policy. My regedit.exe was unavailable:
So, to fix this issue I installed Visual Studio 2015 Community Edition .
That fixed the issue.
Do not forget to restart your computer after installation, otherwise - you will get the same error. If you solve this problem with installation of VS2015, you will be able to use Visual Studio Template
in VS2015 only. It will not be available in other versions of Visual Studio.

Visual Studio, how to finish up solution and deploy?

I'm an CS intern working at a company that primarily develops using .NET and Microsoft. I've been using Visual Studio sparsely, and now I'm kind of stuck.
I tried building a NugetGallery using IIS EXpress, and the nuget feed works.
http://localhost:88/PSGallery/ gives me my nuget feed alright.
But how I do I finish up in Visual Studio? I can run this with VS, but the instant I close VS, my website goes down. I've tried building it and I think it only outputs
NugetPowerShellGallery\NugetHost\bin\NugetHost.dll
What am I supposed to do with this? How do I make it just run indefinitely?
On a sidenote, how can I display this website on the local network as http://JohnS/PSGallery/

EntityFramework 5 - Getting value cannot be null parameter name: font error while using the designer

I'm getting a strange error while using EF 5 using a Database First approach on the designer. The error is saying 'value cannot be null parameter name: font'. I also get a big red X over the design area. I'm not exactly sure how the designer generated this error, and to this point, I've only used the designer to create my edmx.
Thoughts? This is with VS 2012 RTM version.
I was able to resolve the same error by simply restarting Visual Studio.
I was able to fix this by repairing the Entity Framework Designer for Visual Studio 2012 (Control Panel -> Uninstall a program etc..)
I just had exactly the same problem (several years later) after I started using Entity Framework designer right after installing it. (using VS2019, .NET Framework 4.7.2, and Entity Framework 6)
I the issue disappeared, before I could document it:
Restarting Visual Studio only one time was not enough; I did it few times.
I'm not sure why, but it is likely because that some VS components did not unload right away when I was just restarting it.
I guest it would have work right away by restarting the computer, to ensure everything is unloaded from memory.
Thanks to SausageFingers for the clue.