MSBuild.CompilerCache
0.0.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package MSBuild.CompilerCache --version 0.0.2
NuGet\Install-Package MSBuild.CompilerCache -Version 0.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MSBuild.CompilerCache" Version="0.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MSBuild.CompilerCache --version 0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MSBuild.CompilerCache, 0.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MSBuild.CompilerCache as a Cake Addin #addin nuget:?package=MSBuild.CompilerCache&version=0.0.2 // Install MSBuild.CompilerCache as a Cake Tool #tool nuget:?package=MSBuild.CompilerCache&version=0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
What is this?
MSBuild.CompilerCache
is a package that provides machine-wide or distributed caching of C# and F# project compilation.
It extends the CoreCompile
targets from the .NET SDK with caching steps and uses custom MSBuild tasks that perform the actual caching.
How does it work?
- Before
Csc
orFsc
task is invoked, we calculate a hash of all the relevant compilation inputs. - If a cache entry exists with that hash, we simply copy the files and skip compilation.
- If the file does not exist, we run compilation and then populate the cache.
How can I use it?
To use the cache, add the following to your project file (or Directory.Build.props
in your directory structure):
<PropertyGroup>
<CompilationCacheBaseDir>c:/machine-wide/compilation-cache/</CompilationCacheBaseDir>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MSBuild.CompilerCache" Version="0.0.2" />
</ItemGroup>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Microsoft.Build.Tasks.Core (>= 17.3.2)
- Microsoft.Build.Utilities.Core (>= 17.3.2)
- Mono.Cecil (>= 0.11.4)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.13.7 | 241 | 8/12/2023 |
0.12.7 | 243 | 6/11/2023 |
0.12.6 | 211 | 6/11/2023 |
0.12.5 | 221 | 6/11/2023 |
0.12.3 | 222 | 6/11/2023 |
0.11.16 | 236 | 6/7/2023 |
0.10.6 | 203 | 5/29/2023 |
0.10.5 | 201 | 5/27/2023 |
0.9.6 | 215 | 5/24/2023 |
0.9.5 | 205 | 5/23/2023 |
0.9.4 | 208 | 5/23/2023 |
0.8.5 | 211 | 5/21/2023 |
0.7.4 | 207 | 5/12/2023 |
0.6.4 | 264 | 5/11/2023 |
0.5.5 | 232 | 5/11/2023 |
0.4.6 | 242 | 4/20/2023 |
0.3.4 | 256 | 4/19/2023 |
0.2.1 | 250 | 4/14/2023 |
0.0.2 | 259 | 3/29/2023 |
0.0.1 | 285 | 3/29/2023 |