|
20 | 20 | <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> |
21 | 21 | <TreatWarningsAsErrors>true</TreatWarningsAsErrors> |
22 | 22 | <AllowUnsafeBlocks>true</AllowUnsafeBlocks> |
23 | | - <RegisterForComInterop>true</RegisterForComInterop> |
24 | 23 | </PropertyGroup> |
25 | 24 | <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'"> |
26 | 25 | <DefineConstants>TRACE</DefineConstants> |
|
40 | 39 | <Compile Include="GenerateVersionInfo.cs" /> |
41 | 40 | </ItemGroup> |
42 | 41 | <ItemGroup> |
43 | | - <None Include="GVFS.props"> |
| 42 | + <BuildProps Include="GVFS.props"> |
44 | 43 | <SubType>Designer</SubType> |
45 | | - </None> |
46 | | - <None Include="GVFS.cs.props"> |
| 44 | + </BuildProps> |
| 45 | + <BuildProps Include="GVFS.cs.props"> |
47 | 46 | <SubType>Designer</SubType> |
48 | | - </None> |
49 | | - <None Include="GVFS.cpp.props"> |
| 47 | + </BuildProps> |
| 48 | + <BuildProps Include="GVFS.cpp.props"> |
50 | 49 | <SubType>Designer</SubType> |
51 | | - </None> |
52 | | - <None Include="packages.config" /> |
53 | | - <None Include="ProjFS.props"> |
| 50 | + </BuildProps> |
| 51 | + <GeneratedPackageConfig Include="packages.config" /> |
| 52 | + <BuildProps Include="ProjFS.props"> |
54 | 53 | <SubType>Designer</SubType> |
55 | | - </None> |
| 54 | + </BuildProps> |
56 | 55 | </ItemGroup> |
57 | 56 |
|
58 | 57 | <Target Name="GetTargetFrameworkProperties" /> |
59 | 58 | <Target Name="GetNativeManifest" /> |
60 | 59 | <Target Name="GetCopyToOutputDirectoryItems" /> |
61 | 60 | <Target Name="Publish" /> |
62 | 61 |
|
| 62 | + <!-- The following targets are defined here so that we can build |
| 63 | + this project without emitting an assembly. --> |
| 64 | + <Target Name="BuiltProjectOutputGroup" /> |
| 65 | + <Target Name="BuiltProjectOutputGroupDependencies" /> |
| 66 | + <Target Name="DebugSymbolsProjectOutputGroup" /> |
| 67 | + <Target Name="DebugSymbolsProjectOutputGroupDependencies" /> |
| 68 | + <Target Name="DocumentationProjectOutputGroup" /> |
| 69 | + <Target Name="DocumentationProjectOutputGroupDependencies" /> |
| 70 | + <Target Name="SatelliteDllsProjectOutputGroup" /> |
| 71 | + <Target Name="SatelliteDllsProjectOutputGroupDependencies" /> |
| 72 | + <Target Name="SGenFilesOutputGroup" /> |
| 73 | + <Target Name="SGenFilesOutputGroupDependencies" /> |
| 74 | + |
63 | 75 | <UsingTask TaskName="GenerateG4WNugetReference" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v12.0.dll"> |
64 | 76 | <ParameterGroup> |
65 | 77 | <GitPackageVersion ParameterType="System.String" Required="true" /> |
|
129 | 141 |
|
130 | 142 | <PropertyGroup> |
131 | 143 | <GVFSSetupPath>$(BuildOutputDir)\GVFS.Installer\bin\x64\$(Configuration)\SetupGVFS.$(GVFSVersion).exe</GVFSSetupPath> |
132 | | - <GitPackagesConfigPath>$(MSBuildThisFileDirectory)packages.config</GitPackagesConfigPath> |
133 | 144 | <OutDir>$(BuildOutputDir)\GVFS.Build\</OutDir> |
134 | 145 | <GitVersionConstantsPath>$(OutDir)GVFSConstants.GitVersion.cs</GitVersionConstantsPath> |
135 | 146 | <G4WInstallBatPath>$(OutDir)InstallG4W.bat</G4WInstallBatPath> |
|
160 | 171 | </ItemGroup> |
161 | 172 |
|
162 | 173 | <Target Name="GVFSPreBuild" |
163 | | - Inputs="$(MSBuildThisFileFullPath);$(MSBuildProjectFullPath);$(MSBuildThisFileDirectory)GenerateG4WNugetReference.cs" |
164 | | - Outputs="$(GitPackagesConfigPath)"> |
| 174 | + Inputs="$(MSBuildThisFileFullPath);$(MSBuildProjectFullPath);$(MSBuildThisFileDirectory)GenerateG4WNugetReference.cs;@(BuildProps)" |
| 175 | + Outputs="@(GeneratedPackageConfig)"> |
165 | 176 | <GenerateG4WNugetReference GitPackageVersion="$(GitPackageVersion)" Condition="'$(OS)' == 'Windows_NT'" /> |
166 | 177 | </Target> |
167 | 178 |
|
168 | 179 | <Target Name="GVFSPackageRestore" |
169 | | - Inputs="$(MSBuildThisFileFullPath);$(MSBuildProjectFullPath);$(GitPackagesConfigPath)" |
| 180 | + Inputs="$(MSBuildThisFileFullPath);$(MSBuildProjectFullPath);@(GeneratedPackageConfig)" |
170 | 181 | Outputs="$(RestoreTimestampPath)" |
171 | 182 | DependsOnTargets="GVFSPreBuild" |
172 | 183 | Condition="'$(OS)' == 'Windows_NT'"> |
|
177 | 188 |
|
178 | 189 | <Target Name="GenerateInstallScripts" |
179 | 190 | DependsOnTargets="GVFSPackageRestore;$(GenerateInstallScriptsDependsOn)" |
180 | | - Inputs="$(RestoreTimestampPath);$(GitPackagesConfigPath);$(MSBuildThisFileFullPath);$(MSBuildProjectFullPath);$(MSBuildThisFileDirectory)GenerateGitVersionConstants.cs;$(MSBuildThisFileDirectory)GenerateInstallScripts.cs;$(MSBuildThisFileDirectory)GenerateGVFSInstallersNuspec.cs" |
| 191 | + Inputs="$(RestoreTimestampPath);@(GeneratedPackageConfig);$(MSBuildThisFileFullPath);$(MSBuildProjectFullPath);$(MSBuildThisFileDirectory)GenerateGitVersionConstants.cs;$(MSBuildThisFileDirectory)GenerateInstallScripts.cs;$(MSBuildThisFileDirectory)GenerateGVFSInstallersNuspec.cs" |
181 | 192 | Outputs="$(GitVersionConstantsPath);$(G4WInstallBatPath);$(GVFSInstallBatPath);$(GVFSInstallerNuspecPath)" |
182 | 193 | Condition="'$(OS)' == 'Windows_NT'"> |
183 | 194 | <GenerateGitVersionConstants GitPackageVersion="$(GitPackageVersion)" PackagesPath="$(PackagesDir)" OutputFile="$(GitVersionConstantsPath)"> |
|
189 | 200 |
|
190 | 201 | <Target Name="GenerateShared" |
191 | 202 | DependsOnTargets="GenerateInstallScripts;$(GenerateSharedDependsOn)" |
192 | | - Inputs="$(RestoreTimestampPath);$(GitPackagesConfigPath);$(MSBuildThisFileFullPath);$(MSBuildProjectFullPath);$(MSBuildThisFileDirectory)GenerateVersionInfo.cs;$(MSBuildThisFileDirectory)GenerateApplicationManifests.cs" |
| 203 | + Inputs="$(RestoreTimestampPath);@(GeneratedPackageConfig);$(MSBuildThisFileFullPath);$(MSBuildProjectFullPath);$(MSBuildThisFileDirectory)GenerateVersionInfo.cs;$(MSBuildThisFileDirectory)GenerateApplicationManifests.cs" |
193 | 204 | Outputs="$(AssemblyVersionPath);$(VersionHeaderPath);@(ApplicationNeedsManifest->'%(OutputFile)')"> |
194 | 205 | <GenerateVersionInfo Version="$(GVFSVersion)" AssemblyVersion="$(AssemblyVersionPath)" VersionHeader="$(VersionHeaderPath)" /> |
195 | 206 | <GenerateApplicationManifests Version="$(GVFSVersion)" ApplicationName="@(ApplicationNeedsManifest)" ManifestPath="@(ApplicationNeedsManifest->'%(OutputFile)')" /> |
|
0 commit comments