diff options
author | Brad King <brad.king@kitware.com> | 2017-01-24 19:45:15 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2017-01-24 19:45:15 (GMT) |
commit | f6e4602fe7467fe149f3843a3263a986ea1d804d (patch) | |
tree | 361078419f73bfe7a3f6d6c7b6cf50a366c3eeff /Help/release | |
parent | 269b1db914698a94cfb53998d8811ab03885418c (diff) | |
parent | 4bfb1249ede1b86dcd53b34ec885f17460edc8f6 (diff) | |
download | CMake-f6e4602fe7467fe149f3843a3263a986ea1d804d.zip CMake-f6e4602fe7467fe149f3843a3263a986ea1d804d.tar.gz CMake-f6e4602fe7467fe149f3843a3263a986ea1d804d.tar.bz2 |
Merge topic 'csproj-improvements'
4bfb1249 VS: removed usage of relative paths for C# targets in in-source builds
90cb4083 VS: improve handling of source files with special extensions in .csproj
Diffstat (limited to 'Help/release')
-rw-r--r-- | Help/release/dev/vs-advanced-source-properties.rst | 12 | ||||
-rw-r--r-- | Help/release/dev/vs-csharp-support.rst | 13 |
2 files changed, 23 insertions, 2 deletions
diff --git a/Help/release/dev/vs-advanced-source-properties.rst b/Help/release/dev/vs-advanced-source-properties.rst new file mode 100644 index 0000000..dd391e0 --- /dev/null +++ b/Help/release/dev/vs-advanced-source-properties.rst @@ -0,0 +1,12 @@ +vs-advanced-source-properties +----------------------------- + +* The :ref:`Visual Studio Generators` for VS 2010 and above + learned some more source file properties: + + - :prop_sf:`VS_RESOURCE_GENERATOR` (C# only): allows setting the resource + generator + - :prop_sf:`VS_COPY_TO_OUT_DIR`: parameter to set if file should be copied + to output directory (values: ``Never``, ``Always``, ``PreserveNewest``) + - :prop_sf:`VS_INCLUDE_IN_VSIX`: boolean property to include file include + Visual Studio extension package diff --git a/Help/release/dev/vs-csharp-support.rst b/Help/release/dev/vs-csharp-support.rst index 26d8574..46b235a 100644 --- a/Help/release/dev/vs-csharp-support.rst +++ b/Help/release/dev/vs-csharp-support.rst @@ -19,7 +19,16 @@ vs-native-csharp-support that specifically targets C# contains ``CSharp`` as a part of their names. -* More finetuning of C# targets can be done using target - properties. Specifically the Visual Studio related target +* More finetuning of C# targets can be done using target and source + file properties. Specifically the Visual Studio related target properties (``VS_*``) are worth a look (for setting toolset versions, root namespaces, assembly icons, ...). + +* **Auto-"linking"** in .csproj files: In C#/.NET development with + Visual Studio there is a number of visual editors used which + generate code. Both the generated files and the ones edited + with the UI are connected in the ``.csproj`` file using + ``<DependentUpon>`` tags. If CMake finds within a C# project + any source file with extension ``.Designer.cs`` or ``.xaml.cs``, + it checks sibling files with extension ``.xaml``, ``.settings``, + ``.resx`` or ``.cs`` and establishes the dependency connection. |