I am trying to have a PostBuildEvent in my SSIS project. This is my original .DTProj file from a test project with one test package.
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ProductVersion>10.0.2531.0</ProductVersion>
<SchemaVersion>9.0.1.0</SchemaVersion>
<State>$base64$PFNvdXnRyb2xJbmZvPg==</State>
<Database>
<Name>PreBeforeDeployTest.database</Name>
<FullPath>PreBeforeDeployTest.database</FullPath>
</Database>
<Cubes />
<Dimensions />
<DataSources />
<DataSourceViews />
<MiningModels />
<Roles />
<Miscellaneous />
<Configurations>
<Configuration>
<Name>Development</Name>
<Options>
<OutputPath>bin</OutputPath>
<ConnectionMappings />
<ConnectionProviderMappings />
<ConnectionSecurityMappings />
<DatabaseStorageLocations />
</Options>
</Configuration>
</Configurations>
<DTSPackages>
<DtsPackage FormatVersion="3">
<Name>TestPackage.dtsx</Name>
<FullPath>TestPackage.dtsx</FullPath>
<References />
</DtsPackage>
</DTSPackages>
</Project>
I have tried inserting <PostBuildEvent> and it looks like this
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<PropertyGroup>
<PostBuildEvent>copy "$(TargetDir)TestPackage.dtsx" "C:\"</PostBuildEvent>
</PropertyGroup>
<ProductVersion>10.0.2531.0</ProductVersion>
<SchemaVersion>9.0.1.0</SchemaVersion>
<State>$base64$PFNvdXnRyb2xJbmZvPg==</State>
<Database>
<Name>PreBeforeDeployTest.database</Name>
<FullPath>PreBeforeDeployTest.database</FullPath>
</Database>
<Cubes />
<Dimensions />
<DataSources />
<DataSourceViews />
<MiningModels />
<Roles />
<Miscellaneous />
<Configurations>
<Configuration>
<Name>Development</Name>
<Options>
<OutputPath>bin</OutputPath>
<ConnectionMappings />
<ConnectionProviderMappings />
<ConnectionSecurityMappings />
<DatabaseStorageLocations />
</Options>
</Configuration>
</Configurations>
<DTSPackages>
<DtsPackage FormatVersion="3">
<Name>TestPackage.dtsx</Name>
<FullPath>TestPackage.dtsx</FullPath>
<References />
</DtsPackage>
</DTSPackages>
</Project>
The PostBuildEvent does not fire at all. What am I doing wrong here?