Alright so I'm just starting to learn C#, I'm not the most savy with everything yet, I'm trying to learn but this issue has really hindered me from going forward learning C#. So basically no matter what I do I can't run a project. Even though there are no errors it will pop up that the build failed. And this happens across ALL my projects even any new one I create. Currently the only way for me to get it to run is by going into developer command prompt and doing dotnet build. This will let it run UNTIL I change even 1 detail about the code and then it stops working. I have uninstalled Visual Studio Community and reinstalled, that didn't work. I uninstalled again as well as deleting all the SDK's and programs with it in control panel, as well as going and deleting all the files related to visual studio in my file explorer and regedit, that didn't work. I even did a Windows reset to try to fix the issue, that also didn't work. Btw I get no error messages it just says build failed even if I change verbosity to detailed or diagnostic. I have tried discord groups but no one has been able to help me. The only lead I think I might have is that my Package Manager Console says
"Unable to cast COM object of type 'System.__ComObject' to interface type 'EnvDTE80.DTE2'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{2EE1E9FA-0AFE-4348-A89F-ED9CB45C99CF}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).".
To help you guys try and figure out the problem I went and got logs so hopefully this help. I went and looked through the logs myself and there are a couple of errors and warnings mostly pertaining to Nuget Package Manager. I'm sorry about how messy the logs look I don't know how to share them the same way I can see them. Just look for where it says error. Logs