Function: org-babel-csharp--generate-project-file
org-babel-csharp--generate-project-file is a byte-compiled function
defined in ob-csharp.el.gz.
Signature
(org-babel-csharp--generate-project-file REFS FRAMEWORK)
Documentation
Generate the file content to be used in a csproj-file.
REFS is a list of references. Check org-babel-csharp--format-refs for
the allowed semantics.
FRAMEWORK is the target framework.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ob-csharp.el.gz
(defun org-babel-csharp--generate-project-file (refs framework)
"Generate the file content to be used in a csproj-file.
REFS is a list of references. Check `org-babel-csharp--format-refs' for
the allowed semantics.
FRAMEWORK is the target framework."
(unless framework
(error "framework cannot be nil"))
(concat "<Project Sdk=\"Microsoft.NET.Sdk\">\n\n "
(when refs
(org-babel-csharp--format-refs refs))
"\n\n <PropertyGroup>"
"\n <OutputType>Exe</OutputType>\n"
(format "\n <TargetFramework>%s</TargetFramework>" framework)
"\n <ImplicitUsings>enable</ImplicitUsings>"
"\n <Nullable>enable</Nullable>"
(when org-babel-csharp-additional-project-flags
(format "\n %s" org-babel-csharp-additional-project-flags))
"\n </PropertyGroup>"
"\n</Project>"))