Commit Graph

44 Commits

Author SHA1 Message Date
Benedek Farkas
0d93cb1d8d
#8816: Compilation workflow should test the setup and code generation (#8817)
* Updating Compile workflow with setup and code generation steps

* Updating NHibernate reference and OrchardBasicCorrectness.ruleset path in ModuleTestsCsProj code generation template

* Ignoring CS2008 warning when recompiling with generated modules, because the theme and test projects don't have .cs files

* Generating a test project should also include packages.config

* Fixing the relative path of Orchard.Core and Orchard.Framework in the generated test project

* A bit of code styling in the Compile workflow

* Updating Readme

* Revert "A bit of code styling in the Compile workflow"

This reverts commit 7b01ebbad0.
2024-12-06 09:59:15 +01:00
Benedek Farkas
fb1aa73475
8776: Upgrade Microsoft.CodeDom.Providers.DotNetCompilerPlatform to latest version (#8777)
* Upgrading projects, code generation templates and Specflow app to use Microsoft.CodeDom.Providers.DotNetCompilerPlatform 4.1.0 (latest)

* Updating csprojs not to define LangVersion separately in Release and Debug mode, setting it to "default" instead of "latest"

* Restricting C# language version to 7.3

* Downgrading SmtpMessageChannel.cs to C# 7.3

* Setting MvcBuildViews = false in the remaining csprojs that reference DotNetCompilerPlatform, like the others

* Setting RoslynCopyToOutDir = false in each csproj that references DotNetCompilerPlatform

See https://github.com/aspnet/RoslynCodeDomProvider?tab=readme-ov-file#build-time-options
- We only need Orchard.Web to include the Roslyn tools in its bin folder, the other csprojs only need the DLL reference
- We could simply remove the targets import in these csprojs, but it will be re-added when the package is updated, so this is cleaner/easier

* We don't actually need <MvcBuildViews>false</MvcBuildViews> in csprojs

* Orchard.Web: Copying Roslyn files to the output folder using the provided target (CopyRoslynCompilerFilesToOutputDirectory) instead of our custom one

* Orchard.proj: Factoring out a part of the Compile target into the DevCompile target and removing BuildViews target

- For a simple local build (just to validate that the solution builds), we don't actually need that second build that copies files to the output folder.
- CI builds (Test, Spec, etc.) that operate on the build output folder are unaffected, because Compile calls DevCompile
- The BuildViews target is not really necessary, just call any other target (Compile, DevCompile, Spec, etc.) with "/p:MvcBuildViews=true"

* Removing incorrect comment about Razor IntelliSense

* Removing VBCodeProvider configuration from Web.config files

* Getting rid of Microsoft.CodeDom.Providers.DotNetCompilerPlatform.targets imports and associated configuration except in Orchard.Web.csproj

* Adding VB compiler configuration to src/Orchard.Web/Web.config, because it would be readded on rebuild by the imported target anyway
2024-04-04 16:35:29 +02:00
Hermes Sbicego
0c34ca3dd5
Feature/8445 libraries update (#8446) 2021-02-04 10:05:50 -08:00
Hermes Sbicego
700b029a34
target framework 4.8 to all projects (#8444) 2021-01-07 10:07:38 -08:00
Lombiq
6bce539675 Farewell, CodePlex! (Press F to Pay Respects) 2019-02-19 20:42:13 +01:00
Benedek Farkas
be802146bc
Dynamic C# Compilation, Static and Dynamic Razor Compilation with Roslyn (1.10.x) (#7713) 2018-09-19 13:45:23 +02:00
Benedek Farkas
ed0c60c5fd 5408: Dropping static view compilation temporarily to be able support Dynamic Compilation with Roslyn (#7892) 2017-12-21 12:49:53 -08:00
Benedek Farkas
2904d35d91 Enabling C# 6 for Dynamic Compilation and Razor IntelliSense
Fixes #5408
2017-11-09 12:04:12 -08:00
Benedek Farkas
cdcec3cd8b #7713: View compilation with MSBuild (#7732)
Fixes #7713
2017-06-29 21:10:51 +02:00
Benedek Farkas
185ad6b1eb Adding LangVersion 5 setting to each csproj's Debug and Release target (#7641)
Fixes #7639
2017-04-03 10:38:41 -07:00
Daniel Stolt
3f6fc4899e Retargeted NuGet references to targetFramework="net452". Fixes #6406. 2016-02-19 22:49:15 +01:00
Daniel Stolt
dec68d454c Updated code base to target .NET Framework 4.5.2. Fixes #5700. 2016-01-14 01:06:32 +01:00
Rob King
74d8cf8e9a Line endings resolution 2015-12-15 11:55:23 +00:00
Rob King
3f72249654 Moved System.Web.Mvc to NuGet. Version change: None 2015-12-07 20:46:05 +00:00
Lombiq
680a9eb85b Fixing that some files had line endings mixed up (both LF and CRLF) 2015-12-03 00:10:12 +01:00
Daniel Stolt
6228f4e8fb Merge branch '1.9.x' into dev 2015-08-16 18:02:29 +01:00
Daniel Stolt
a04195ee0e Added a simple skeleton Assets.json to codegen module template. Fixes #5606. 2015-08-16 17:38:16 +01:00
Kees Damen
2cfcdfaa8b Fixed project references to Orchard.Core and Orchard.Framework 2015-04-16 16:23:12 +02:00
Daniel Stolt
1a8ebf2548 Fixed version conflict build warnings and cleaned up all Web.config files. 2015-03-04 02:06:09 +01:00
Sebastien Ros
221197f314 Upgrading to .NET Framework 4.5.1 2014-08-13 14:07:45 -07:00
Lombiq
4ce3ee3226 #18696: Adding module unit tests code generation command
Work Item: 18696
2013-12-23 21:04:25 +01:00
Erik Oppedijk
ae56ac4b89 Code generation, remove views\web.config 2013-12-04 11:56:01 -08:00
Erik Oppedijk
8e84bd57e7 Upgrade projects and web.config to 4.5 FW 2013-08-23 15:16:14 +02:00
Sebastien Ros
a3e6916bdd #18917: Upgrading solution file to Visual Studio 11
Work Item: 18917

--HG--
branch : 1.x
2012-08-15 10:14:09 -07:00
Sebastien Ros
62e73f517a Updating to ASP.NET MVC 4 and Razor 2
--HG--
branch : 1.x
2012-08-07 16:35:46 -07:00
Sebastien Ros
807b7d1333 Removing MVC dependency on code generation
--HG--
branch : 1.x
2011-09-29 16:33:42 -07:00
LukeHertert@LukeHertert-BC
44ece7842e Modified template module project to include mvc project type.
Modified module codegen command to include orchard controller t4 template.

--HG--
branch : contributions
2011-04-27 16:53:09 -04:00
Sebastien Ros
f7c2e49c72 Adding a placement.info file in TheThemeMachine, and in codegen
--HG--
branch : dev
2011-02-09 16:50:29 -08:00
Dave Reed
be99957432 #17252: Adding web.configs too module roots, and codegen commands, to enable razor intellisense.
--HG--
branch : dev
2011-01-31 15:52:03 -08:00
Sebastien Ros
1e8ddda4cc Removing Web.config file creation from "codegen module" command
--HG--
branch : 1.x
2011-01-10 18:12:05 -08:00
Andre Rodrigues
9617f3a666 Removing unecesssary references.
--HG--
branch : dev
2010-12-06 16:25:27 -08:00
Sebastien Ros
e9220fa517 Including Theme.png in theme scaffolding command
Work Item: 16682

--HG--
branch : dev
2010-11-24 18:05:02 -08:00
Renaud Paquay
65849e7ff6 Update all MVC reference to 3.0.0.0
--HG--
branch : dev
2010-11-21 13:06:39 -08:00
Renaud Paquay
b43f30be15 Merge dev => perf
--HG--
branch : perf
2010-11-15 16:23:24 -08:00
Dave Reed
e869a4f467 Fixing some basic fx cop warnings
--HG--
branch : dev
2010-11-12 12:47:06 -08:00
Dave Reed
ca74da5ea5 Setting code analysis ruleset to paired down Security rules.
--HG--
branch : dev
2010-11-10 16:16:54 -08:00
Suha Can
a284f16056 - Cleanup and removing unneeded assembly references.
--HG--
branch : perf
2010-11-10 13:56:12 -08:00
Dave Reed
1171d94030 Merge
--HG--
branch : dev
2010-11-03 14:33:25 -07:00
Andre Rodrigues
006567786b Updating proj files.
--HG--
branch : dev
2010-11-03 14:29:50 -07:00
dareed
f0968a0c71 - root web.config removes all handlers and makes all paths a 404, except default.asp to support "/".
- content directories no opt-in to static files only.
- module web.configs no longer need to explicitly exclude cshtml, etc, paths.

--HG--
branch : dev
2010-11-02 18:12:44 -07:00
Renaud Paquay
ba2cae0404 Removing MVC2 project guids from project files
--HG--
branch : dev
2010-10-24 19:20:38 -07:00
Sebastien Ros
44e84c3021 Supressing web server entry in new projects
--HG--
branch : dev
2010-09-30 16:46:19 -07:00
Dave Reed
e2bada7486 Added ability to generate a simple theme from the command line
--HG--
branch : dev
2010-09-30 12:19:26 -07:00
Andre Rodrigues
d0d60f2c1f Added the codegeneration module.
--HG--
branch : dev
2010-09-29 15:56:18 -07:00