Packages
Component Registration
The Wave Extensions for ArcGIS and Wave Extensions for ArcFM packages will automatically import the Wave.Extensions.Esri.targets
and Wave.Extensions.Miner.targets
into the Visual Studio Project File when the packages are installed. These MS Build
target files are used to register the ESRI
and ArcFM
components when the project is compiled.
Wave.Extensions.Esri.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14 | <?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<RegisterForComInterop Condition="'$(RegisterForComInterop)' == ''">False</RegisterForComInterop>
</PropertyGroup>
<Target Name="BeforeClean" Condition="$(RegisterForComInterop) == 'True'">
<Message Text="Wave.Extensions.Esri.targets: Unregistered"/>
<Exec WorkingDirectory="$(CommonProgramFiles)\ArcGIS\bin" Command="ESRIRegAsm.exe "$(TargetPath)" /p:Desktop /u /s" Condition="Exists('$(TargetPath)')" ContinueOnError="true"/>
</Target>
<Target Name="AfterBuild" Condition="$(RegisterForComInterop) == 'True'">
<Message Text="Wave.Extensions.Esri.targets Registered"/>
<Exec WorkingDirectory="$(CommonProgramFiles)\ArcGIS\bin" Command="ESRIRegAsm.exe "$(TargetPath)" /p:Desktop /s" ContinueOnError="true" />
</Target>
</Project>
|
Wave.Extensions.Miner.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 | <?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<RegisterForComInterop Condition="'$(RegisterForComInterop)' == ''">False</RegisterForComInterop>
</PropertyGroup>
<Target Name="BeforeClean" Condition="$(RegisterForComInterop) == 'True'">
<Message Text="Wave.Extensions.Miner.targets: Unregistered"/>
<Exec WorkingDirectory="$(CommonProgramFiles)\ArcGIS\bin" Command="ESRIRegAsm.exe "$(TargetPath)" /p:Desktop /u /s" Condition="Exists('$(TargetPath)')" ContinueOnError="true"/>
<Exec WorkingDirectory="$(ProgramFiles)\Miner and Miner\ArcFM Solution\Bin" Command="RegX.exe "$(TargetPath)" /d /u" Condition="Exists('$(TargetPath)')" ContinueOnError="true" />
</Target>
<Target Name="AfterBuild" Condition="$(RegisterForComInterop) == 'True'">
<Message Text="Wave.Extensions.Miner.targets Registered"/>
<Exec WorkingDirectory="$(CommonProgramFiles)\ArcGIS\bin" Command="ESRIRegAsm.exe "$(TargetPath)" /p:Desktop /s" ContinueOnError="true" />
<Exec WorkingDirectory="$(ProgramFiles)\Miner and Miner\ArcFM Solution\Bin" Command="RegX.exe "$(TargetPath)" /d" ContinueOnError="true" />
</Target>
</Project>
|