TDS: 'Build fo GetFrameworkPaths failed' after upgrade - visual-studio

I've upgraded my TDS to 5.5 and now I get the following error when opening a solution containing a TDS project with Visual Studio:
TDS failed to change configurations with the error 'Build of GetFrameworkPaths failed.'.
Please see the output window for more details.

This is a known issue not yet fixed by Hedgehog. They do provide a workaround:
http://www.hhogdev.com/blog/2016/may/common-problem-after-tds-5,-d-,5-upgrade.aspx
To save some time you can just delete the
C:\Program Files (x86)\MSBuild\HedgehogDevelopment\SitecoreProject\v9.0\HedgehogDevelopment.SitecoreProject.targets
file and run the TDS installer and choose repair instead of uninstalling and reinstalling TDS as Hedgehog recommends.

This error can also appear when running into code / build issues. I saw this error when there was a line ending issue which resulted in a syntax error in my code generation output (eg. Models.cs).
Try these:
Restart Visual Studio and/or your PC.
Unload and reload the TDS project(s) with dependencies.
Restore NuGet packages.
Check your TDS logs / outputs as there may be a more specific error that precedes this one.
Inspect your code for any syntax errors / line ending issues.
Inspect your code for any rule / code quality violations.
Verify that your other projects can build successfully.

Related

Installing AzerothCore Build Errors: ace.vcxproj, authserver.vcxproj, worldserver.vcxproj; Builds Skipped: clean_cotire, INSTALL

I am trying to install azerothcore for the first time, but I am getting stuck building the solution in Visual Studio 2019. As far as I can tell, everything else is working fine. I can post CMake logs if necessary, but that step seems to go smoothly.
When I try to build the solution, 5 things go wrong: 3 projects fail to build, and two skip.
Failures:
ace.vcxproj
Output:
3>C:\Users\myname\azerothcore\deps\acelite\ace\Process_Manager.cpp(142,1): fatal error C1001: Internal compiler error.
3>(compiler file 'msc1.cpp', line 1532)
3> To work around this problem, try simplifying or changing the program near the locations listed above.
3>If possible please provide a repro here: https://developercommunity.visualstudio.com
3>Please choose the Technical Support command on the Visual C++
3> Help menu, or open the Technical Support help file for more information
3>INTERNAL COMPILER ERROR in 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\bin\HostX64\x64\CL.exe'
3> Please choose the Technical Support command on the Visual C++
3> Help menu, or open the Technical Support help file for more information
authserver.vcxproj
Output:
15>LINK : fatal error LNK1104: cannot open file '..\..\..\deps\acelite\ace\Debug\ace.lib'
Notably, in this case, it cannot open the file because there is no file to open. If I navigate to that location, there is no ace.lib. The same error occcurs in
worldserver.vcxproj
Output:
16>LINK : fatal error LNK1104: cannot open file '..\..\..\deps\acelite\ace\Debug\ace.lib'
Finally, there are the two skips. I am not sure what is going on here (really, I am not sure about what is going on anywhere).
clean_cotire
As regards this error, it just says that it was not selected to build. Is this a problem from CMake?
INSTALL
Again, it says that it was not selected to build for this configuration.
So that is where I am. I tried finding similar errors on this board, but to no avail. Is there anything I can do about these errors?
You encountered a bug in the latest Visual Studio 2019 release. This has been reported to Microsoft, see this ACE issue for the link. Please install an older release, see https://learn.microsoft.com/en-us/visualstudio/releases/2019/history for the download links.
On May 18th 2020 a fix for this ICE has been merged into ACE.

error Build: File 'COMPUTE_PATHS_ONLY.ts' not found in visual studio

I received the following error after the repair of visual studio 2015.
Error Build: File 'COMPUTE_PATHS_ONLY.ts' not found.
COMPUTE_PATHS_ONLY.ts is not from my Git repo. Other files in the Git repo have not changed. What could it be?
I found answer here, it works for me: https://github.com/Microsoft/TypeScript/issues/7445
the error indicates that there is a mismatch between your targets (C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\TypeScript\Microsoft.TypeScript.targets) and the tasks dll (C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\TypeScript\TypeScript.Tasks.dll); this would be an issue with the installer not handling a specific order of installing different versions.
Can please try:
uninstall TS 1.8.* from Add/Remove Programs
uninstall TS 1.7.* from Add/Remove Programs
make sure the folder C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\TypeScript is empty, if not remove it manually
install TS 1.7.6 again, you should see the folder created in C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\TypeScript
For me the solution was to move the folder at
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v15.0\TypeScript
to
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\TypeScript
and overwrite everything there.
This answer helped me a lot, I could solve my problem this way
When I removed "COMPUTE_PATHS_ONLY" from the
line Configurations="$(TypeScriptBuildConfigurations)
COMPUTE_PATHS_ONLY" in the file Microsoft.TypeScript.targets, my
problem was solved.
The steps mentioned above will not guarantee to fix your issue. After following the steps mentioned above I was keep getting the same compiler error.
I restarted my machine after "uninstall and install" operation but no luck.
Finally, I found that instead of doing all these from control panel we have to do it from package manager (Right Click on solution and select "Manage Nuget packages for solution.."
First uninstall the TS package for your project from package manager and then install the package and build.
Img of project setting
I was using the VS 2015 update_1 and type script version 1.8
For me it was solved by updating VS 2015 in update_3
https://msdn.microsoft.com/en-us/library/mt752379.aspx

unable to install xamarin from vs 2015 setup

I have vs 2015 upgrade 1 installed and I try to install Xamrin from the setup, but when I try to install it, at the end receive this error message:
C#/.Net Xamarin
The installer has encountered an unexpected error installing this package. This may indicate a problem with package. The error code is 2711.
how can I solve this?
I had the same error. The error is due to old Xamarin installer files in the cache.
C#/.Net Xamarin The installer has encountered an unexpected error installing this package. This may indicate a problem with package. The error code is 2711.
I did the following steps to fix it:
Note: a folder could be hidden, so enable show hidden items in the windows explorer.
Delete any Xamarin related folders from
"C:\ProgramData\Microsoft\VisualStudioSecondaryInstaller\14.0\installers" folder.
For example:
C:\ProgramData\Microsoft\VisualStudioSecondaryInstaller\14.0\installers\XamarinVS
C:\ProgramData\Microsoft\VisualStudioSecondaryInstaller\14.0\installers\XamarinVSV1
If the first step doesn't help then try to do the following below.
Delete all Xamarin related folders or files from windows temprorary folders TMP and TEMP.
You could find the temprorary folders in the Windows/Control Panel/ System/Advanced/Enviroment variables
I found that solution in comments section here:
https://blogs.msdn.microsoft.com/visualstudio/2016/03/31/mobile-app-development-made-easy-with-visual-studio-and-xamarin/#comment-142062
You can try a manual install by downloading and installing the following:
http://download.xamarin.com/XamarinforVisualStudio/Windows/Xamarin.VisualStudio_4.0.1.147.msi

Visual studio failed installation

I tried to install Visual Studio Community 2015 on a fresh copy of windows 10, after having to reinstall it because of boot loop.
But i got a very strange error during the installation that i could not debug.
here's error message from the installer:
http://imgur.com/a/GFMAi
and also error log
https://docs.google.com/document/d/1_c5-heqG2ln0tHh17NGYDGOBOmJEV2Du9UILXmmzYyg/edit?usp=sharing
i tried several solutions on the web but nothing changed.
Any help?
TL;DR:
VS installation tries to open nonexistent files?
After parsing multiple error logs, one error was persistent across them which was caused by "custom culture", so i went to my region settings and changed format from English(Europe) to English(United Kingdom) and after that i got less errors.
I also had to do some registry cleaning because installation tried to use bundle packages that were not present on my PC. I wish this installer would try to reinstall them instead of just giving up.

PowerBI - visuals: Project build errors

I've been trying to setup the PowerBI visualizations github project in visual studios 2013, but seem to get a ridiculous amount of build errors (200+).Some of the errors thrown were:
"Incorrect reference: file "D:\PowerBI-visuals\src\Clients\VisualsCommon\obj\VisualsCommon.d.ts" does not exist"
"Error 102 Unexpected token; 'module, class, interface, enum, import or statement' expected."
"Error 6 ';' expected."
"Error 102 The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters."
What I did to setup:
After making sure I had git and node installed, I executed the following three commands successfully:
git clone https://github.com/Microsoft/PowerBI-visuals.git
cd PowerBI-visuals
npm install
The npm install command seemed to work just fine. I then open the solution in VS 2013 and tried to build the project but was presented with errors.
Any idea what I may of done incorrectly in the setup procedure?
The solution should be opened in VS 2015 or in VisualStudioCode (free
versions).
Visuals builds using Gulp.
Visual Studio 2013 does not support Gulp tasks.
Visual Studio 2015 by default use gulpfile.js to
build Visuals.
Also you can build the Visuals using this command:
gulp build. (from the root folder of the Visuals)
P.S. - In VS2015, Don't forget to do this (as mentioned in instruction):Right click on the project root folder then select 'Property Pages'. In the window opened select 'Build' and then in 'Before running startup page' select 'No Build'

Resources