we recently began to use Team Foundation Build Server 11 Beta with a build agent on a Windows Server 2008 R2 system without having Visual Studio installed on this system. Everything works fine.
When including new Visual Studio 11 Beta Portable Libraries in our solution, problems started.
MSBuild was not able to find included
C:\Program Files (x86)\MSBuild\Microsoft\Portable\v4.0\Microsoft.Portable.CSharp.targets
on the build agent system.
We copied the missing files from a second system but now we get a build error
".NETPortable,Version=v4.0,Profile=Profile47" not found.
How to build Portable Library on Team Foundation Build 11?
Best regards,
Björn
http://msdn.microsoft.com/en-us/library/gg597391.aspx
To install the Portable Class Library Tools on a build machine without
installing Visual Studio 2010, save the download file
(PortableLibraryTools.exe) on your computer, and run the installation
program from a Command Prompt window. Include the /buildmachine switch
on the command line.
Related
I'm trying to build a portable library project on a TFS server and I've got the following error:
"The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Portable\v4.6\Microsoft.Portable.CSharp.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk"
It's true, I don't have a Portable directory in MSBuild/Microsoft on the server. I have it on my developer computer, so I guess if I install Visual Studio it will work but I don't want to. I've installed the build tools on the server, with all the available UWP features but I still don't have this Portable directory.
In general, your build server should consist of the same software configuration as a developer workstation. Install Visual Studio. It does not consume a license.
Just copy C:\Program Files (x86)\MSBuild\Microsoft\Portable folder to your build server. It's pity that build tools 2017 don't create these files automatically.
Have you tried to install just .NET Framework Developer Pack 4.6.2, the Build tools essentials from here, and PortableLibraryTools with /buildmachine switch?
I am running VS professional 2015 on my Windows 10 professional, and I needed to install the Crystal Reports runtime on my computer so I can build projects with CrystalDecisions.CrystalReports.Engine and CrystalDecisions.Shared, version 13.0.2000.0.
I also currently have Crystal Reports 2008, version 12.0.0.683 installed on my computer to create reports outside VS 2015.
On our company server, there was a .msi file and a .exe file. Like an idiot, I ran the .msi file without knowing:
To integrate "SAP Crystal Reports, developer version for Microsoft Visual Studio" into VS 2010 or 2012 (SP 7 and higher) or VS 2013 (SP 9 or higher) or VS 2015 RC (SP14) - VS 2015 (fully - SP 15), you must run the Install Executable. Running the MSI will not fully integrate Crystal Reports into VS. MSI files by definition are for runtime distribution only.
So after running the .msi file and realizing my mistake, I ran the "Uninstall" option from the .msi file and checked my GAC. The CrystalDecisions has been uninstalled from my "GAC_32" and "GAC_64" folders. However, the strange part is that in my "GAC_MSIL" folder, it has the CrystalDecisions version 12.0.2000.0.
GAC_MSIL folder - but no CrystalDecisions folders in GAC_32 or GAC_64
I checked my Control Panel -> Programs -> Programs and Features and nowhere can I find "SAP Crystal Reports runtime engine for .NET Framework (64-bit)" and "SAP Crystal Reports, version for Microsoft Visual Studio", so I figured the uninstall was successful.
When I try to run the .exe file this time, I get an error saying that it cannot run the installation due to the following error:
SAP Crystal Reports runtime installation error window
So I checked EventViewer -> Windows Logs -> Application, and the error log said it was an error at installation 1603 and "Product: SAP Crystal Reports, version for Microsoft Visual Studio -- You must already have Visual Studio 2010 or Visual Studio 2012 installed to proceed with this installation."
I talked with my boss and he said he doubts I need VS 2012 and it does not make sense to have both VS 2012 and 2015 on my computer. Unfortunately, I cannot build projects using CrystalDecisions v.13 like our production server, and building the project using the CrystalDecisions v.12 on my computer will cause the project to fail if I release it to production.
I checked other questions on StackOverflow, and I saw some solutions:
Install VS 2012 - not an option unless a last resort; we have VS 2015 only - unless if installing a "community" version of VS 2012 would do the trick.
Do a system restore - one person suggested because I ran the .msi file instead of the .exe, it messed up my assembly, so doing a system restore before I ran the .msi file could fix it and allow me to install CR runtime correctly, but again, my boss says he wouldn't recommend it
Try running the CR runtime setup from the SAP website with a newer version other than v.13 for my x64 bit machine that will integrate with VS 2015 without needing VS 2012 - then the newer version of my CR runtime when I build my projects will be different from the CR runtime on the production server and there will be conflicts when I release my project on the production server.
Alter/delete my assembly files because running the .msi file screwed up my assembly cache - Really risky; I don't know the first thing about assembly files and I could mess up my computer. And would deleting manually the "CrystalDecisions" folders from my "GAC_MSIL" folder even work if the GAC_32 and GAC_64 folders do not have "CrystalDecisions"?
None of these solutions are preferable, so does anyone have any other solutions I cannot see that work?
Thank you for your patience. I could just bash my head against the desk because I ran the .msi file instead of reading the directions carefully. I feel like an idiot...
To all those who are wondering, my boss and I fixed the issue and it was incredibly simple!
It turns out that we needed some Visual Studio 2012 tools installed on the computer before running the executable. We needed to install those SDK libraries in Visual Studio 2015 before running the installation of the "CRforVS_13_0_6.exe" file.
So I went to "Control Panel" -> "Programs and Features" -> selected Visual Studio Professional 2015 and clicked the "Change" button to go to the following menu:
Installing new Visual Studio 2015 SDK Features
We checked the "Windows 8.1 and Windows Phone 8.0/8.1 Tools" and made sure "Tools and Windows SDKs" was checked.
After updating, I restarted my computer and tried to run the Crystal Reports v13 for Visual Studio .exe again.
It worked!
So it looks like my boss's doubt was incorrect; you do need some VS 2012 components to run the CR v13 installation for Visual Studio!
Putting this here for future reference!
I have two machines:
- dev machine --> Win 10 64-bit with Visual Studio 2015
- test machine --> Win 10 32-bit machine without Visual Studio (no version is available)
I have developed DB & Web API apps on 64-bit machine and would like to compile those projects on 32-bit machine.
I have installed Win 10 SDK and also VS 2015 build tools but after those installations, 32-bit machine doesn't have following:
Program Files\MSBuild\Visual Studio
Without those, I can't run my batch files to compile those projects. Any idea how do I get those MSBuild related files? (in my 64-bit machine, I can see SSDT & WebApplications folders which are necessary for compiling DB & Web API projects and I need same on another machine.)
First off, Visual Studio (VS), SSDT, and MSBuild are separate but related applications. VS installers don't so much install just VS but the typical VS suite of apps which includes MSBuild for most flavors.
If you're setting up a 'build machine' and want to manually shoot over builds to MSBuild, you can use this Microsoft Build Tools 2015 https://www.microsoft.com/en-us/download/details.aspx?id=48159
However, if you're getting a continuous integration set-up up and going, there are a bunch of options and services. visualstudio.com has some options.
I personally like TeamCity (Subversion, Test & Build) + Octopus Deploy (pushes builds to the right environment).
Team City can be set-up for a variety of version control and build runners. The free/intro version is full-featured. Octopus' intro version will work for small teams. Both products are well-supported and documented.
I have a VS solution in order to build an installer for a Windows Service.
I have the Limited Edition of Installshield, so i can't install windows services. Thus, I use the "Class Installer" Tip in my InstallShield project.
This solution was working until I change of PC.
If I build my Installer on my new PC, with the same solution, same version of Visual Studio 2012 and same version of InstallShield : I have an error message "Error 1001" during installation of my setup.
If I try to install my Installer with InstallUtil.exe, I obtain a BadImageFormatException (both with Framework x86 or x64).
In the new exe of my Installer what doesn't work, the DLLs are the sames than on my older PC, but the MSI is not the same.
You have an architecture bitness mismatch somewhere in your calling sequence.
Heath has a good explanation here that still applies to later VS editions as far as i know.
http://blogs.msdn.com/b/heaths/archive/2006/02/01/64-bit-managed-custom-actions-with-visual-studio.aspx
Also, if any of your code is AnyCpu then it will start out as 64-bit and be unable to link to any 32-bit Dlls, but your issue seems to be at the first call in the custom action.
If you can avoid VS installer classes then do so.
We're building a .NET 4.5 application, using VS 2012. On developer machines, where VS 2012 is installed, there are no issues. On machines where this is missing, they get an error while building the project which boils down to:
The reference assemblies for framework ".NETFramework,Version=v4.5" were not found.
I know that if I installed VS 2012 on these other machines, everything will work. I don't want to have to do that. I've tried installing a variety of things, all without any success:
.NET 4.5 SDK
.NET 4.5.1 SDK
MS Build Tools
Visual Studio 2012 SDK
Windows Software Development Kit for Windows 8.1
After picking one machine and installing VS 2012 on it, I did before and after Process Monitor snapshots during a build. The successful machine has this folder C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5, the unsuccessful machine does not.
I can copy the folder from my dev machine onto our build machines and other machines, but is there any thing I can install (short of Visual Studio), that sets this up correctly?
Visual studio 2012 does not packed with .net framework 4.5.
you can download .net framework 4.5 and install it on your machine.