Updating DSS for C# 7.3 Support
Ensure you have the following before starting the DSS C# 7.3 upgrade process:
- Permissions: System administrator permissions to the DSS server.
- Current CMS Version: CMS 10.6.378 or below that requires upgrade to CMS
10.6.498 with C# 7.3 support. - Development Environment: Microsoft Visual Studio with NuGet Package Manager.
- Backup: Complete backup of your DSS project files.WarningAlways work with a backup copy. Never perform configuration changes directly on production code without proper version control and testing procedures.
The DSS project has been updated to support C# 7.3 for CMS
This update enables modern C# language features and improved compilation performance. The changes affect project dependencies, compiler configuration, and assembly binding redirects.
Steps include:
Update Project References
Add the Microsoft.CodeDom.Providers.DotNetCompilerPlatform 4.1 reference to your DSS project files to support C# 7.3 compilation.
Update Web.config Compiler Settings
Replace the legacy compiler settings in Web.config with the new Microsoft.CodeDom.Providers.DotNetCompilerPlatform compiler configuration to enable C# 7.3 support.
Add Assembly Binding Redirect
Add the required assembly binding redirect for Microsoft.CodeDom.Providers.DotNetCompilerPlatform to ensure proper version resolution.
Rebuild DSS Solution
Build and test your DSS project to verify the C# 7.3 support changes have been successfully implemented.
The DSS project rebuilds without errors or warnings. The project now supports C# 7.3 with the updated Microsoft.CodeDom.Providers.DotNetCompilerPlatform 4.1 reference and compiler configuration.
Task Troubleshooting: If build errors occur after implementing the C# 7.3 changes:
- Verify package installation: Ensure Microsoft.CodeDom.Providers.DotNetCompilerPlatform 4.1.0 is properly installed via NuGet Package Manager.
- Review Web.config syntax: Verify all elements are properly closed and formatted in the Web.config file.
- Review assembly binding: Confirm the assembly binding
redirect is correctly placed within the
<runtime>/<assemblyBinding>element. - Clean and rebuild: Clean the solution followed by a full rebuild to resolve any cached compilation issues.
- Review Microsoft Learn: Update a package for NuGet package update information.
- Review Microsoft Learn: Build errors and warnings for error and warning troubleshooting information.
- Review Microsoft Learn: Troubleshoot broken references for dependency conflict resolution.
Test DSS Functionality
Test DSS functionality to ensure the upgrade does not affect existing features.
Include these tasks in your testing strategy:
- Run the solution locally using Visual Studio, or deploy to a staging DSS or DSS Preview site.
- Confirm pages load correctly.
- Test all custom functionality thoroughly.
Review Ingeniux CMS 10.5–10.6 DSS Upgrade Checklist for standard DSS upgrade verification tests.
Task Troubleshooting: If the DSS fails to run after upgrade:
- Check Configuration: Verify all configuration settings.
- Review Logs: Analyze application logs for error messages.
- Test Incrementally: Temporarily disable custom functionality to isolate issues.