views:

59

answers:

0

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"&gt;
  <PropertyGroup>
    <BuildEnvironment>DEV</BuildEnvironment>
  </PropertyGroup>
  <Choose>
    <When Condition=" '$(BuildEnvironment)' == 'DEV' ">
      <PropertyGroup>
        <BaseUrlWebServices>http://tools.productionServer.pl&lt;/BaseUrlWebServices&gt;
        <PublishDir>C:\Documents and Settings\myName\Desktop\Project\TestMsBuild\</PublishDir>
      </PropertyGroup>
    </When>
    <When Condition=" '$(BuildEnvironment)' == 'QA' ">
      <PropertyGroup>
        <BaseUrlWebServices>http://tools.testServer.pl&lt;/BaseUrlWebServices&gt;
        <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 ?