# Implement custom Msbuild target

**URL:** https://discourse.cmake.org/t/implement-custom-msbuild-target/4000
**Category:** Usage
**Tags:** os:windows, gen:vs
**Created:** [August 31, 2021, 9:56am UTC](https://discourse.cmake.org/t/implement-custom-msbuild-target/4000 "2021-08-31T09:56:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![yurybura](https://discourse.cmake.org/user_avatar/discourse.cmake.org/yurybura/32/347_2.png) [@yurybura](https://discourse.cmake.org/u/yurybura)
#### Post date: [August 31, 2021, 9:56am UTC](https://discourse.cmake.org/t/implement-custom-msbuild-target/4000/1 "2021-08-31T09:56:00Z")

</div>

I’m trying to implement custom Msbuild target to use with VS generator. My use case will be:

```auto
cmake -G"Visual Studio 16 2019" -A x64 -T"custom_cpp_toolset,VCTargetsPath=path_to_my_targets" ..

```

Documentation says: Specify an alternative `VCTargetsPath` value for Visual Studio project files. This allows use of VS platform extension configuration files (`.props` and `.targets` ) that are not installed with VS.

But I need to include standard configuration files installed with Msbuild like Microsoft.Cpp.props and Microsoft.Cpp.targets in my configuration files. How I can do this? Looks like all standard configurations are not available.
