Visual studio 2022 .net 6 ckeditor config.js file gets reverted back on build - build

I am working on a .net 6 MVC web application in visual studio 2022. It has standard ckeditor 4 present in the wwwroot folder. So I wanted to include a plugin called "colorbutton" which is already present in the plugins folder.
So I've used this statement in config.js file "config.extraPlugins='colorbutton';" which is a valid way to include a plugin in ckeditor. So however, after doing this change, if I build the solution, the colorbutton plugin line I've added is reverting back itself, meaning that line just disappears.
I'm not able to understand what's going on with my vs. Please share your thoughts if anyone is willing to.
I have tried by changing properties of config.js file, Build Action to none and Copy to Output Directory to Do not copy. This didn't work

Related

How do I fix Visual Studio 2022 Error E1696 for WinRT

When I generate a new WinRT project in Visual Studio 2022 I get Error E1696 cannot open source file "winrt/Windows.Foundation.h" yet when I look at the Include directories the files do exist at the correct location.
This is an artifact of the way C++/WinRT works. While the header files do exist in the Windows SDK, that's not where the project goes looking for them. Instead, they are generated on the fly into the source tree under the Generated Files directory.
So to fix the issue you will have to compile a newly created project at least once. This by itself isn't sufficient for IntelliSense to pick up the changes in environment. To help IntelliSense out you're going to have to right-click into the source editor, and select Rescan -> Rescan File.
Once that is done, all the IntelliSense errors go away, including E1696.
Historic background
It's easy to get confused why the C++/WinRT header files are part of the Windows SDK, yet the C++/WinRT VSIX templates aren't using them. A look back at C++/WinRT's history helps explain how we landed in this situation:
Initially, the code generator responsible for producing the language projection header files (modern.exe, later renamed to cppwinrt.exe) wasn't published. Instead, the header files were generated by Kenny Kerr, and published through his modern repo.
Publishing the language projection header files through a GitHub repository carried over into the cppwinrt repo owned by Microsoft, and continued to be the deployment channel for several versions of Windows.
This wasn't exactly convenient for developers, so with the release of the Windows SDK for Windows 10, version 1803 (10.0.17134.0) the headers got added to the SDK (including the code generator). This worked, but wasn't an ideal situation either, as the release cycle of C++/WinRT was now tied to that of the Windows SDK, roughly 6 months.
Decoupling the release cycles was crucial in allowing C++/WinRT to progress at its own pace, shipping frequent updates with improvements and bug fixes. This was enabled by deploying the code generator as part of a NuGet package that the C++/WinRT project templates reference. The MSBuild project drives generation of the language projection headers, and clients can freely decide, which version of the C++/WinRT library they wish to use, controlled through the NuGet package reference.
This is how things work today, but the language projection headers can no longer be yanked from the Windows SDK. They were published, with clients relying on finding them there, and expecting an SDK update to not break their builds. And this is why the Windows SDK contains header files you aren't meant to be using.
Often a Build --> Clean Solution followed by a Build --> Build Solution is enough to resolve the issue. Give Visual Studio a few seconds to complete any background work.
If that fails try reinstalling the Microsoft.Windows.CppWinRT NuGet package.
Go to Tools --> NuGet Package Manager --> Manage NuGet Packages For Solution...
In the NuGet Solution pane choose the Installed option.
Tick the CheckBox next to your Project name in the Window to the right.
Click the Uninstall button
And click Ok in the Change Preview dialog box.
The CPPWinRT package will now be removed.
Change to the Browse option in the NuGet Solution pane.
Type "cppwinrt" into the Search text box of the pane.
Select the Microsoft.Windows.CppWinRt package and install it.
Finally choose the Build --> Build Solution option.
After the Build has been completed give Visual Studio a few more seconds to complete any background work and the errors should be gone.

The missing file is Xamarin.Forms.props?

I am having a similar kind of issue, once I upgraded to 15.5 then..nothing is working ..even a blank template is not going for a build ?
This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. The missing file is ....\packages\Xamarin.Forms.2.5.0.121934\build\netstandard1.0\Xamarin.Forms.props.
I ran into this today. Try unloading the project in Visual Studio and edit the csproj file. Search for that props file reference in the file. I had two--one from the current version and one outdated version as well. Remove the old one and reload the project.
As always, don't do anything without the safety net of source control to roll back if something goes wrong.

How to create an Empty web project (no C#, no MVC, no .Net References) in Visual Studio 2017

I need a web project that can be deployed to a web server (in this case IIS), however I do not want anything other than static HTML, TEXT and JSON files in the project. I don't want to do a build. I don't want a Properties folder. I don't want a BIN folder. I don't want an OBJ folder. I don't want any NUGET packages. Most of all, I don't want any DLL or .Net references.
I have tried the solution proposed by Microsoft here: https://social.msdn.microsoft.com/Forums/vstudio/en-US/7589fbbf-732d-4c99-b9e9-7fe247f18f5a/how-to-create-static-web-site?forum=visualstudiogeneral
This is not even close to a static site.
And, here: https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ASPNETCoreTemplatePack20173 I found an updated template which says it will create a static site without C#. It does not. Roslyn is included as is .Net CORE. Also at least 1 C# file is still generated and is still needed.
I tried going back to Visual Studio 2015 to see if there was an option there, which I could then just reopen in VS 2017, but I found none there either.
Anyone know how to create a truly empty web project for VS 2017, which can be published, but has only static content?
The solution suggested, that of using a Blank solution, really does not offer a solution at all. The blank solution still has no projects, and adding a project pulls in all the ASP.NET and/or MVC pieces I am trying to ignore.
I did find that I can use 'File->Open Website', browse to a folder with the static content and open the web site in Visual Studio. Once I have altered the content as desired, I have to use 'Website->Copy Web Site' to copy the files to the IIS server. A packaged deployment is not available. The 'Copy Web Site' indicate which files have changed so it is pretty easy to figure out what files need to be updated. To copy one or more files, use the connection buttons at the top of the dialog, then select files as necessary on the left and use the arrows in the middle of the dialog to move/copy files to the IIS server on the right.
Image of Copy Dialog
The result is a project I can open and edit in Visual Studio, which can be easily deployed/updated from inside Visual Studio. I tried the solution in VS 2015 and VS 2017.

Cant get QtVSAddin to work with Microsoft Visual Studio 2010

So I am following the directions provided by Qt project website, http://qt-project.org/wiki/QtVSAddin and I am on the last step which reads,
"Open the Qt4VS2003\Qt4VSAddin folder, and copy Qt5VSAddin.AddIn and the Release directory to your VS Addins folder – by default this is “%USERPROFILE%\Documents\Visual Studio 2012\Addins”, but this can be changed under Tools->Options->Environment->Add-in Security. Rename Release to something meaningful (like Qt5VSAddin, since it goes with the addin).
Open Qt5VSAddin.AddIn in your favorite text editor, and find the Version tag. Change it to the version appropriate for your VS version – 2008 is 9.0, 2010 is 10.0, and 2012 is 11.0. Find the Assembly tag and change it to reflect the location of the Qt5VSAddin.dll file within the binary folder, i.e. Qt5VSAddin\Qt5VSAddin.dll.
Go back to Visual Studio, and open Tools->Add-in Manager.
My first question is it refers to "binary folder" and Qt5VSAddin.dll? Not sure exactly what they are refering to, but I found Qt5VSAddin.dll in my Debug folder. For some reason the instructions make it seem like it should of automatically been put in my Realease folder...but it was not. Either way, I copied the one found in the Debug folder to same directory, and also tried to copy it to the release directory we renamed(following the directions) however when I go to Tools->Add-in Manager and select my Qt Add on I get that the system cannot find the file specified, error 8007002. It doesn't state which file it cant find, but I would assume its the .dll...which is clearly there....any ideas?

ColdFusion Builder - Open project

This might sound very very basic 101 type question, but I really need help on this. I am a .net background developer, and recently received an existing project's code which is in ColdFusion. I want to open this existing code in CF Builder.
I installed prequisites like ColdFusion developer edition and ColdFusion builder. In visual studio, we do this thing either by double click on the csproj file in the explorer or from File > Open menu and selecting project. In CF Builder I don't see that option at all. In the code there are files with CFM and CFC extension, Two LCK files. In the builder, there is no Open Project option (There is one inside Project menu but that's always disabled) . I also tried Import project but no luck. Any help? I am using CF Builder 2 trial version.
You should be able to import your project with the following steps:
File -> Import
Other -> Existing Folder as New Project
Select the folder and provide a project name (this is internal to the IDE only)
Let CFBuilder do it's thing importing
Once imported, the new project will appear in your Project View
Right click on the project folder in this view and select Apply CF Nature
That should have your CFML project imported into the IDE and 'tagged' as a CFML project.