MSBuild Community Tasks can't see msbuild in cmd

Posted by phenevo on Stack Overflow See other posts from Stack Overflow or by phenevo
Published on 2010-06-14T14:24:16Z Indexed on 2010/06/14 14:42 UTC
Read the original article Hit count: 958

Filed under:
|

Hi,

I have winforms project

app.config:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <configSections>
        <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
            <section name="MyClient.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
        </sectionGroup>
    </configSections>
    <applicationSettings>
        <MyClient.Properties.Settings>
            <setting name="MyClient_MyService_MyService"
                serializeAs="String">
                <value>SomeUniqueKeyWithAGoodName/server/myService.asmx</value>
            </setting>
        </MyClient.Properties.Settings>
    </applicationSettings>
</configuration>

customized.targets:

<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <BuildEnvironment>DEV</BuildEnvironment>
  </PropertyGroup>
  <Choose>
    <When Condition=" '$(BuildEnvironment)' == 'DEV' ">
      <PropertyGroup>
        <BaseUrlWebServices>http://tools.productionServer.pl</BaseUrlWebServices>
        <PublishDir>C:\Documents and Settings\myName\Desktop\Project\TestMsBuild\</PublishDir>
      </PropertyGroup>
    </When>
    <When Condition=" '$(BuildEnvironment)' == 'QA' ">
      <PropertyGroup>
        <BaseUrlWebServices>http://tools.testServer.pl</BaseUrlWebServices>
        <PublishDir>C:\Documents and Settings\myName\Desktop\Project\TestMsBuild2\</PublishDir>
      </PropertyGroup>
    </When>
  </Choose>
  </Project>

and

publishQA.bat (this file is in directory of project)

@ECHO OFF

msbuild /t:Publish /p:Configuration=Release /p:BuildEnvironment=QA /p:ApplicationVersion=1.2.3.5

pause

When I'm running this bat I get error in cmd:

@@echo is not recognised...

When I'm starting project it's ok, but when I'm lauch try to use any method from webservice I got error about wrong URI.

Good uri for QA is :

http://tools.testServer.pl/server/myService.asmx Any ideas ?

© Stack Overflow or respective owner

Related posts about c#

Related posts about msbuildcommunitytasks