<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xml:base="https://www.programmez.com/" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>T4</title>
    <link>https://www.programmez.com/</link>
    <description></description>
    <language>fr</language>
    
    <item>
  <title>Visual Studio 2022 v17.6 intègre nouvel outil de ligne de commande T4 pour .NET</title>
  <link>https://www.programmez.com/actualites/visual-studio-2022-v176-integre-nouvel-outil-de-ligne-de-commande-t4-pour-net-35409</link>
  <description>&lt;span class=&quot;field field--name-title field--type-string field--label-hidden&quot;&gt;Visual Studio 2022 v17.6 intègre nouvel outil de ligne de commande T4 pour .NET&lt;/span&gt;
&lt;span class=&quot;field field--name-uid field--type-entity-reference field--label-hidden&quot;&gt;&lt;span&gt;fredericmazue&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;field field--name-created field--type-created field--label-hidden&quot;&gt;&lt;time datetime=&quot;2023-06-21T12:01:36+02:00&quot; title=&quot;Mercredi, 21 juin 2023 - 12:01&quot; class=&quot;datetime&quot;&gt;mer, 21 Jun 2023 - 12:01&lt;/time&gt;
&lt;/span&gt;


  &lt;div class=&quot;inline__links&quot;&gt;&lt;nav class=&quot;links inline nav links-inline&quot;&gt;&lt;span class=&quot;comment-forbidden nav-link&quot;&gt;&lt;a href=&quot;/user/login?destination=/actualites/visual-studio-2022-v176-integre-nouvel-outil-de-ligne-de-commande-t4-pour-net-35409%23comment-form&quot;&gt;Se connecter&lt;/a&gt; ou &lt;a href=&quot;/user/register?destination=/actualites/visual-studio-2022-v176-integre-nouvel-outil-de-ligne-de-commande-t4-pour-net-35409%23comment-form&quot;&gt;s&#039;inscrire&lt;/a&gt; pour publier un commentaire&lt;/span&gt;&lt;/nav&gt;
  &lt;/div&gt;

&lt;div class=&quot;btn btn-light&quot;&gt;
      &lt;a href=&quot;/actualites/outils/ide&quot; hreflang=&quot;fr&quot;&gt;IDE&lt;/a&gt;
  &lt;/div&gt;

&lt;div class=&quot;mots-cles-actualite d-flex flex-wrap gap-2&quot;&gt;
      &lt;div class=&quot;btn&quot;&gt;&lt;a href=&quot;/actualites/visual-studio-2&quot; hreflang=&quot;fr&quot;&gt;Visual Studio&lt;/a&gt;&lt;/div&gt;
      &lt;div class=&quot;btn&quot;&gt;&lt;a href=&quot;/actualites/t4&quot; hreflang=&quot;fr&quot;&gt;T4&lt;/a&gt;&lt;/div&gt;
  &lt;/div&gt;

            &lt;div class=&quot;clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item&quot;&gt;&lt;p&gt;Microsoft a annoncé Visual Studio 2022 v17.6 inclut désormais un outil de ligne de commande mis à jour Text Template Transformation Toolkit (T4) construit avec .NET 6. Pour mémoire, T4 est un framework puissant qui permet d&#039;automatiser la création de fichiers texte.&amp;nbsp;Il est intéressant pour automatiser la création de modèles HTML, XAML ou même de code à partir d&#039;API REST.&amp;nbsp;Ces fichiers modèles peuvent contenir du code .NET invocable et des littéraux de chaîne.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Utiliser ce outil est simple : tous les arguments sont les mêmes que&amp;nbsp;TextTransform.exe.&amp;nbsp;L&#039;emplacement du nouvel utilitaire est également le même et peut être trouvé sous&amp;nbsp;. {VS_INSTALL_PATH}\Common7\IDE\TextTransformCore.exe&lt;/p&gt;
&lt;p&gt;Actuellement, cette intégration ne prend pas en charge les générateurs de fichiers de tâches in-IDE ou MSBuild pour .NET 6+.&amp;nbsp;Cependant, si votre modèle ne repose pas sur l&#039;appel de services in-IDE, vous pouvez contourner ce problème en utilisant TextTransformCore.exe&amp;nbsp;avec la&amp;nbsp;commande Exec.&lt;/p&gt;
&lt;p&gt;Voici un exemple, en tant qu&#039;étape PreBuild&amp;nbsp;:&lt;/p&gt;
&lt;p&gt;&amp;lt;Target Name=&quot;PreBuild&quot; BeforeTargets=&quot;PreBuildEvent&quot;&amp;gt;&lt;br&gt;&amp;nbsp; &amp;lt;Exec Command=&quot;&#039;$(DevEnvDir)TextTransformCore.exe&#039; &#039;$(ProjectDir)MyFile.tt&#039;&quot; /&amp;gt;&lt;br&gt;&amp;lt;/Target&amp;gt;&lt;/p&gt;
&lt;/div&gt;
      &lt;section class=&quot;field field--name-field-commentaire-actu field--type-comment field--label-above comment-wrapper&quot;&gt;
  
  

  
&lt;/section&gt;
</description>
  <pubDate>Wed, 21 Jun 2023 10:01:36 +0000</pubDate>
    <dc:creator>fredericmazue</dc:creator>
    <guid isPermaLink="false">76069 at https://www.programmez.com</guid>
    </item>

  </channel>
</rss>
