IDE 1100 Error, I looked up this and only got something not related MVC - model-view-controller

So I am wondering how come my IDE1100 is not working. I went to the only question related to this and it was about xamarin, Other Answer, I am not working with xamarin at all. I clicked on the error for more help it said I don't have F1 button workign but it was working then the issues said I didn't have the RazorAssembly.cs or Assembly.cs files were missing. Okay so I did what they told me to do n the link above but unloading and reloading that also did nothing for me. I then ran clean build again then ran a code analysis on the solution and I got all these weird code naming violations and I did not have the originally. It all started from trying to create a new migration because I was changing variable names. I figured well I don't need the database only one person in it and then bam just like that the issue reappeared. I have no clue of what I done to actually create this error. I don't want to restart the whole project again. I am using VS 2022 with MVC project.

So it turns out that it was me that messed up but it would not show my errors at all when I tried to build.
so I clicked on where my mouse is at in the picture and just clicked on the plus sign. It was initially build + intelisense but when I clicked build only it actually showed me an error that was easy to fix. I had to change the view names because I changed them. usually it would show me this error even in build + intelisense this never happened before like wth and you see the name stuff is gone too this is baffeling is this actually normal with vs 2022.

Related

When opening a script from Unity, Visual Studio opens the wrong solution

I have multiple Unity projects on this PC, however this problem only affects one of them, the one which is connected to Plastic SCM named "My Daughter's Adventure". Please ignore the name :). If I try to open a c# script from Unity, it opens it like this. However, the correct .sln file does indeed exist in the correct folder, shown here.
If I try to open one of my "offline" projects, everything works fine. Image here.
Now, I can open the .sln file manually and then open the script file from Unity. That brings back Intelisense and that little code dropdown menu, but this method has been kind of bipolar. Sometimes everything works fine, otherwise I get errors in Unity regarding the name of the script that doesn't correspond with anything and it asks me fix "compile errors" even if there aren't any.
Do note that I tried everything, at least what I could find online in terms of fixing this, including the preference settings in Unity. I'm also kinda new to Unity and Visual Studio. It took me 3 hours just to identify the problem and made an account just for this problem. Can anyone help me?

Visual Studio builds are reverting code to pre-correction states

So, new to .NET Core and going slow. Followed a standard tutorial for ASP.NET Core MVC app using Entity Framework to connect to MSSQLLocalDB - this went well.
Converted the application to connect to MySql, and went equally well,
Changed the name of a table on MySql to Interests from Interest, and after a bit of fiddling around this to was put to bed, that is it was working as expected.
Went to run the application today and I get:
There were Build Errors Would you like to continue and run the last successfull build.
Code has reverted to Interest, from Interests in several places in Obj files,
for instance "Create.cshtml.g.cs"
Corrected the code and went to run, the same build error pops up, and all corrections are undone.
I make the changes again, save the files, exit VS, reload, the changes are as they should be, run and it reverts all changes, failing again.
I thought this might be some sort of cache issue so deleted the obj folder, again corrected the entries, but again run the build and the corrections reverted!
I solved this issue on my machine by changing the cshtml file properties. Right click the chstml file in the Solution Explorer window, click on Properties in the context menu.Then in the Properties window, change the "Copy to Output Directory" to "Copy if newer". Then make sure "Build Action" is set to "Content".

Xcode project crashing every time it is opened

Every time I open my project in Xcode ( Version 10.0 beta (10L176w) ) I get a crash.
What have I TRIED to do to fix the problem?
I have tried using Xcode 9 but that didn't seem to work either.
I have tried clicking another file as soon as I open the
project, but that does not seem to work.
I have tried going to the directory in the error log, but it would not take me there.
I have tried right-clicking on xxx.xcodeproj and then clicking Show Packaged Contents then deleting the xcuserdata folder (also tried with xxx.xcworkspace).
Expected result:
For my project not to crash every time it is opened.
Actual result:
A crash every time I open my project.
What caused it?
I can't know for sure what caused it, but it happened when I was adding Binaries and Libraries I created (I am new to it, so may have done something wrong). You can also see a few lines in the log screenshot about Frameworks, so this might have been the cause.
Why does it matter?
I am unable to work on my project, halting progress, as neither the .xcodeproj or the .xcworkspace will open. I am hesitant (and also it's bit of a pain) to edit the files to write my code. I wouldn't like to start ALL over again.
I am not looking to remake my project, and that is a last resort.
Is there some sort of project/cache cleaning I can do without opening the project (something similar to ⌘ + ⇧ + K)?
If you have any questions, please ask me. If you require a certain part of the crash log, let me know.
In the end, I just re-made the project. I started using git for the first time as well, so I will stay with that from now on, as it will reduce the chances of this happening again :)

XCode Project Navigator Bug

Recently, while developing an app for iOS, XCode has begun to exhibit buggy behavior that hasn't gone away even after reinstalling my entire Mac (which leads me to believe that something in the project settings may be causing this). In the left panel, switching to a pane other than the Project Navigator then switching back to it causes Project Navigator to expand ALL of the folders in my project. In addition, if I attempt to make a new group by right clicking and selecting New Group, a new folder shows up momentarily, then disappears again. The .pbxproj file is modified as well, but the new folder doesn't show up even if I restart XCode. Has anyone been able to fix this before? I wasn't able to find any posts anywhere relevant to this (it's kind of a hard problem to Google...). Thanks!
Update: I tested the bug by creating another app; the new app didn't have these issues, so I concluded that the project I made must have been corrupted somehow. I deleted and re-cloned the project from GitHub, which fixed the problem. Something went wrong with Xcode's settings for my project; I'm curious as to what the problem was, so if anyone has had experience please let me know!

Workflow Foundation: Designer is not working

When I try to open any activity in design mode designer fails with message "The document contains errors that must be fixed before the designer can be loaded. Reload the designer after you have fixed the errors". The project builds and runs fine though. This happens even with a fresh newly created solution. I mean that if I create a new workflow project and add a new item -> activity the problem persists.
If I click "Reload the designer" I get the following error: "Undefined CLR namespace. The 'clr-namespace' URI refers to a namespace 'System' that is not included in the assembly". If I build the project the error disappears but the designer doesn't start working.
I'm using VS2010 Premium. The only plugin installed is ReSharper. However I tried removing it but it didn't solve the problem. I've also asked a friend of mine to reproduce the same error on his computer but everything worked well.
The problem was that there are several types of editor for .xaml files. If you right click open with you can choose one of them. In my case WPF designer was selected by default though it's better to choose automatic selection.
Hope this information will be helpful for someone else :)

Resources