пофиксил создание команды патчинга csproj файла

This commit is contained in:
rzaitov 2013-10-30 16:27:00 +04:00
parent 67b5fcf73a
commit 38e9eb5487
3 changed files with 5 additions and 4 deletions

View File

@ -29,7 +29,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
<DebugType>full</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\iPhoneSimulator\Release</OutputPath>
<OutputPath>Output</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<MtouchLink>None</MtouchLink>

View File

@ -22,7 +22,7 @@ class PatchCsprojCommandBuilder:
key = result[1]
value = self.__valueProvider.getValueFor(result[2])
csprojAbsPath = self.__valueProvider.resolveAbsPath(relPath)
csprojAbsPath = self.__pathProvider.resolveAbsPath(relPath)
slnConfig = self.__config['sln_config']
command = PatchCsprojCommand(csprojAbsPath, key, value, slnConfig)

View File

@ -2,7 +2,7 @@ from CommandBuilders.PatchCsprojCommandBuilder import PatchCsprojCommandBuilder
from ManualTests.path_provider import PathProvider
from commands.ValueProvider import ValueProvider
config = {}
config = {'sln_config' : 'Release|iPhone'}
line = "inside 'BuildSample/BuildSample/CoolApp.csproj' set OutputPath to 'Output'"
base_dir = '../'
@ -10,4 +10,5 @@ path_provider = PathProvider(base_dir)
value_provider = ValueProvider(config)
builder = PatchCsprojCommandBuilder(config, path_provider, value_provider)
command = builder.getCommandFor(line)
command = builder.getCommandFor(line)
command.execute()