Change a configuration property for Teamcity - c++

I am fairly new to teamcity 7.1, but I installed teamcity and then found that I needed to install a new version of Windows SDK from 6.0A to 7.1 due to the ldap.h file. When I run the msbuild for our C++ application I get the ldap not found error.
I believe this is related to needing the newer SDK. Anyway I notice on the Agent properties of
WindowsSDKv6.0A v6.0A
WindowsSDKv6.0A_Path C:\Program Files\Microsoft SDKs\Windows\v6.0A
Should I just add the 7.1 ? or is there a way to replace this configuration property all together?
The buildAgent.properties file does not list any of the configuration properties that exist.

The existing configuration properties are detected automatically by Teamcity agent.
According to Teamcity's document PredefinedBuildParameters-AgentProperties:
TeamCity automatically detects a number of applications including the
presence of .NET Framework, Visual Studio and adds the corresponding
system properties and environment variables
And in table of the same page, it shows:
WindowsSDK This property is defined if the corresponding
version of Windows SDK is installed. (Supported versions are 6.0,
6.0A, 7.0, 7.0A, 7.1)
So try to restart Teamcity agent to see if it can pick up the newly installed SDK automatically.
If it can't, try to add the 7.1 properties in the buildAgent.properties file, and then restart the build agent.
And to tell msbuild to use the correct SDK:
Go to "Start" menu and search "Windows SDK 7.1 Command Prompt"
In the prompt, type "cd setup"
In the prompt, type "WindowsSdkVer.exe -version:v7.1"

Related

How can I configure what .NET version should be installed by windows installer in VS 2017

Currently I am working on a project that needs .NET 4.0 to work properly but when I configure the windows installer and try to install it is trying to install the latest version of .NET. So how can I configure the windows installer to install the .NET version on which the project was created. Also I would like to know how to include the Visual C++ Redistributable in my installer.
When you create a setup project and add primary output of a project to the setup project, the setup project automatically detect dependencies including Microsoft .Net Framework. To see if the detected dependency is correctly what you need, you cam see the following locations:
First of all, right click on Dependencies and click on Refresh Dependencies.
Check prerequisites for your project:
Right click on setup project and choose Properties.
In Properties dialog, from the Configurations combo box choose the configuration, and repeat the following steps for both Debug and Release.
Click on Prerequisites... button to open Prerequisites.
In the Prerequisites dialog, check the desired .Net Framework version.
Press OK and Make sure you repeat above steps for both Debug and Release.
Check Launch Conditions for your setup project:
Right click on setup project and from View select Launch Conditions:
Then under Launch COnditions node, select .Net Framework node and right click and select Properties Window.
In Properties Window check the Version property for .Net Framework launch condition.

Unable to build a cross platform apps on Xamarin.forms?

I'm following a tutorial to create a cross-platform app using xamarin.forms
except that I'm using Windows 7 and hence I skipped those steps for UWP part.
Now when I trying to build the solution, I'm getting the below error message
1> No way to resolve conflict between "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e". Choosing "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.
Based on findings on the net it seems that something to do with versioning messed up however this should not happen as it's a new solution from scratch.
I've also checked the properties that stated as below:
- "Compile using android version (Android 7.1(Nougat))"
- Android Manifest "Target Android version" Use compile using SDK version
Well to be exact, the build was successful but with error logging as output. Please refer to below image
May I know what else I can try?
You can fix this by issuing an update-package -reinstall command in the Package Manager Console.
Make sure that your Xamarin (Visual Studio) installation version is the same as the Xamarin NuGet packages your using.
I recommend to:
Update Xamarin and your Xamarin NuGet packages to the latest versions.
Clean (in build menu)
Rebuild (in build menu)
Try again, if it does not work, continue steps:
Update all your Android related installations (using the SDK manager)
Check the paths for JDK, SDK and NDK in Visual Studio => Options => Xamarin
Try again
It could also be, that you are using a third-party NuGet package that is not compatible with your installed versions. Try removing NuGet packages to isolate the problem.
Unfortunately, there could be many things wrong here, but mostly it is related to versions and installations. Hope this helps.
It looks like you're trying to deploy to a device that does not meet the target requirements.
Verify that the version of the device or emulator you're working on is at least what is shown in your Android Build Options.
To troubleshoot any issues, I'd recommend opening the Android SDK Manager and downloading the Build and SDK tools that match the device you're planning to test on, and rebuild your project targeting the new SDK.

visual studio mac for mac missing of identity class

Hi i downloaded visual studio for mac 2017 community version. I created a default MVC Core 2.0 project and i noticed that there is missing class of Account controllers where it used to have register and account other handler functions.
i created the same project in windows .In windows i can see that there is identity class and controller created.
how do i generate this authentication class in visual studio for mac Core 2.0?
I tried creating the default project in windows and copy to mac and it works!!! After i change the connection string to the server.Identity framework works fine in mac. But why is microsoft not generating the code for mac?
ok this is the command to include authentication for mac ok visual studio 2017 core 2.0.
dotnet new mvc -o moviemvc --auth Individual
once u register a new account. it will create a new database in the folder with app.db which is filebase database i believe.
open db use this sql lite browser to open it and view the content of it.
if you want to use sql server instead then you will need to add this into the line when create new project with terminal. add it in front of --auth will do
-uld
With Visual Studio on Windows there are extra options you can configure when creating a new ASP.NET Core project. These extra configuration options are not currently available with Visual Studio for Mac so a simpler ASP.NET Core project is created.
So you are left with copying the project from Windows, as you already did, or you can open a command prompt and use dotnet new to create a project. If you run the following you can see what configuration options you can specify for the ASP.NET Core MVC project template:
dotnet new mvc --help
Currently the GUI for Mac Visual Studio does not support the ability to add Authentication. However, the CLI does!
dotnet new sln --name <filename>
This will create a new sln
If you don't use the --name flag the sln will take the current folder's name
dotnet new mvc -o moviemvc --auth Individual
This will create a new .csproj with mvc and Authentication (Identity models) included
dotnet sln add </filepath>
This will add the file to the sln in the folder (if exists)
dotnet sln <path-to-solution.sln> add <path-to-project.csproj>
If you have multiple sln's in the folder, you will have to specify the sln you want to target
You can find more information here too

NuGet Package Manager not working in Visual Studio 2017 - for a.NET Core 1.1 web application

I just created a .NET Core Web Application in VS2017 and I wanted to be able to serve a single page application. In order to be able to do that I tried to install the nuget package Microsoft.AspNetCore.StaticFiles. But my NuGet installer failed and threw the following error
Severity Code Description Project File Line Suppression State
Package restore failed. Rolling back package changes for 'MyApp'.
Right click on the project=>Properties and set TargetFramework to .net core 2.0(less than or equal to the packages version you are using)
build the project and then install whatever you want from nuget.

How to create a MFC Application to run setup.exe(msi installer)?

I have java application (.jar files) and created a batch file to execute the application.
Also, I created a Setup project using Visual Studio 2005 (Setup.exe, .msi).
However, it requires JRE to run. I have downloaded the jre installer (exe file) then would like to bundle it by creating a simple MFC application that calls the two installer (jre installer & Setup.exe).
Here's the list of MFC application functionality that want to create:
1) Upon execution (double click) of the MFC application, want to check if the JRE & my Java application are already installed.
2) If the JRE was found installed, get the installation path, display it to MFC's textbox then disable the textbox and JRE install button. Same with my Java application if found installed.
3) Upon clicking the install button (either JRE or my application), would like to execute the installer.
Any guidance on the right direction is appreciated.
EDIT: target OS Windows XP up
Why not use a JRE prerequisite for your installer? Perhaps this will help: Adding Custom prerequsites to visual studio setup project
This way you don't need an application which launches installers.