# .NETStandard compilation with CMake

**URL:** https://discourse.cmake.org/t/netstandard-compilation-with-cmake/11052
**Category:** Code
**Tags:** os:linux, os:windows
**Created:** [June 19, 2024, 9:22am UTC](https://discourse.cmake.org/t/netstandard-compilation-with-cmake/11052 "2024-06-19T09:22:54Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![retif](https://discourse.cmake.org/user_avatar/discourse.cmake.org/retif/32/1776_2.png) [@retif](https://discourse.cmake.org/u/retif)
#### Post date: [June 19, 2024, 9:27am UTC](https://discourse.cmake.org/t/netstandard-compilation-with-cmake/11052/2 "2024-06-19T09:27:09Z")

</div>

Looks like a duplicate of [your other topic](https://discourse.cmake.org/t/cmake-for-c-project-with-nuget-package-references/11028).

Anyway, setting [DOTNET\_TARGET\_FRAMEWORK](https://cmake.org/cmake/help/latest/prop_tgt/DOTNET_TARGET_FRAMEWORK.html) might help.

---

_[View the full topic](https://discourse.cmake.org/t/netstandard-compilation-with-cmake/11052)._
