mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-26 12:03:16 +08:00
Merge
--HG-- branch : dev
This commit is contained in:
@@ -44,7 +44,6 @@ namespace Orchard.Packaging.Commands {
|
||||
|
||||
using ( var stream = File.Create(filename) ) {
|
||||
packageData.PackageStream.CopyTo(stream);
|
||||
stream.Close();
|
||||
}
|
||||
|
||||
var fileInfo = new FileInfo(filename);
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<CodeAnalysisRuleSet>..\..\..\OrchardSecurity.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRuleSet>..\..\..\OrchardBasicCorrectness.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
|
||||
@@ -204,6 +204,7 @@ namespace Orchard.Packaging.Services {
|
||||
|
||||
public string Path { get { return _packagePath; } }
|
||||
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Justification = "Supposed to return an open stream.")]
|
||||
public Stream GetStream() {
|
||||
var stream = new MemoryStream();
|
||||
_webSiteFolder.CopyFileTo(_virtualPath, stream);
|
||||
|
||||
Reference in New Issue
Block a user