msbuildextensionpack

AssemblyInfo not found and msbuild extension pack installed

喜夏-厌秋 提交于 2020-01-14 04:01:05
问题 I am trying to use the AssemblyInfo task and I just ran the msi for .net 4.0 for the MSBuild Extension pack. After installation, I still get this error "C:\AAROOT\csharpprojects\toolbar\project.build" (default target) (1) -> (Compile target) -> C:\AAROOT\csharpprojects\toolbar\project.build(15,5): error MSB4036: The "Ass emblyInfo" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and

FTP Credentials for MSBuild.ExtensionPack.Communication.Ftp

余生长醉 提交于 2019-12-11 06:36:17
问题 In my AfterBuild script I use the following method to upload the files to the deployment server: <MSBuild.ExtensionPack.Communication.Ftp TaskAction="UploadFiles" Host="localhost" FileNames="$(SomeFolder)\$(FileToUpload)" UserName="myUserName" UserPassword="myPassword" RemoteDirectoryName="/" /> How can I load these credentials from a text file or an external source? What are the alternatives? I don't want to hard-code ftp credentials into my cproj files. I used GranadaCoders method to answer

MSBuild: How to make several builds with different versions from same sources?

夙愿已清 提交于 2019-12-11 00:30:40
问题 I have a MSBuild *.proj file that builds my solution and sets build's version using a changeset number. Now I need to make two builds of the same solution, with one difference between: version of the first should be i.e. "5.0.0.{chanset_number}", but version of the second - "2.0.0.{chanset_number}". I use the following code to get a number of the latest changeset and to set version of a build: <ItemGroup> <FilesToVersion Include="$(SolutionRoot)\GUI\Properties\AssemblyInfo.cs" /> </ItemGroup>

Encrypting password in a MSBuild file

≡放荡痞女 提交于 2019-12-10 17:38:55
问题 I want to encrypt the password I am supplying in the following code: <Target Name="Default"> <!-- Install a service on a Remote Machine --> <MSBuild.ExtensionPack.Computer.WindowsService TaskAction="Install" ServiceName="__TestService1" User="$(User)" Password="$(password)" ServicePath="c:\WINDOWS\system32\taskmgr.exe" RemoteUser="$(RemoteUser)" RemoteUserPassword="$(RemoteUserPassword)" MachineName="$(RemoteMachine)" /> </Target> I dont want to hardcode the password. How can I encrypt it?

MSBuild ItemGroup with condition

丶灬走出姿态 提交于 2019-12-07 01:00:41
问题 I don't know if ItemGroup is the right type to use. I will get 4 different booleans that will be true or false depending on choice. I would like to fill up an ItemGroup with this "strings" depending on the true or false. Is that possible or what should I use? Example Anders = true Peter = false Michael = false Gustaf = true My ItemGroup should then have Anders and Gustaf. Is that possible or how should I solve that? 回答1: Since you have a bunch of items, it would be better to store them in an

AssemblyInfo not found and msbuild extension pack installed

假装没事ソ 提交于 2019-12-06 15:40:02
I am trying to use the AssemblyInfo task and I just ran the msi for .net 4.0 for the MSBuild Extension pack. After installation, I still get this error "C:\AAROOT\csharpprojects\toolbar\project.build" (default target) (1) -> (Compile target) -> C:\AAROOT\csharpprojects\toolbar\project.build(15,5): error MSB4036: The "Ass emblyInfo" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) I don't see anything in the installation

tf.exe on tfspreview

青春壹個敷衍的年華 提交于 2019-11-29 04:41:13
I need to get the ChangeSetId in tfspreview for our continuous integration. I just need this single number nothing else. I tried all possible MSBuild tasks that I could find, but there is always another smaller issue stopping me. For MSBuild.ExtensionPack.Tfs.TeamBuild I get : Could not load file or assembly 'Microsoft.TeamFoundation.Client, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and for TfsClient -task in community-pack (which is generating following exec: tf.exe history . /StopAfter:1 /noprompt /format:detailed /recursive ) I get: The specified task executable

tf.exe on tfspreview

倖福魔咒の 提交于 2019-11-27 22:26:19
问题 I need to get the ChangeSetId in tfspreview for our continuous integration. I just need this single number nothing else. I tried all possible MSBuild tasks that I could find, but there is always another smaller issue stopping me. For MSBuild.ExtensionPack.Tfs.TeamBuild I get : Could not load file or assembly 'Microsoft.TeamFoundation.Client, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and for TfsClient -task in community-pack (which is generating following exec: tf.exe